You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Source code for WebMP, the proposed web mentoring platform. The code is divided into two directories, `client` and `server`.
4
+
5
+
## Instructions
6
+
Follow sequentially on first run.
7
+
8
+
- Clone repository, navigate to `client/`.
9
+
- Run `npm install` followed by a `npm run dev`
10
+
- Navigate to `server/`, run `pipenv shell` followed by a `pipenv install` to set up the python virtual environment.
11
+
12
+
- Set up PostgreSQL:
13
+
- Install PostgreSQL 12.
14
+
- Switch to user postgres using `sudo -u postgres -i`
15
+
- Enter interactive mode using `psql`
16
+
- Set password such like: `\password postgres`<set password>
17
+
- Add the set password to path through your shell's `.rc` file (bashrc, zshrc, etc), under the name `DB_PASSWD`.
18
+
- Navigate to `server/`, run `python3 manage.py makemigrations` followed by a `python3 manage.py migrate` to populate the database.
19
+
- Run backend server using, `python3 manage.py runserver`.
20
+
21
+
Navigate to [http://localhost:3000](http://localhost:3000) to view the Svelte client.
22
+
23
+
## Contributing Guidelines
24
+
- Checkout to your branch using `git checkout <first_name>`, do with `-b` flag, if branch not already created.
25
+
- Pull from master, using `git fetch origin master` followed by a `git merge`.
26
+
-**ONLY** open pull requests for code which is critical to the master repository. Divide every goal into features, and open PRs in terms of feature completion. For ex: `PR#1 : [Feature] Created signup form component`
27
+
- Commit messages follow the following format <`[client/server] commit description`> (ex: `[server] Registration input sanitization`)
28
+
- Lint the files before pushing, use `npm run lint`, to run ESLint on all `.svelte, js` files. As a convention, spacing is done in 4 spaces.
29
+
- CSS is written in SCSS, a pre-processed language. HTML classes/ids will follow the BEM structure of naming.
30
+
31
+
32
+
Individual READMEs for common bugs, will be present in both the `client/` and `server/` directories.
0 commit comments