Source code for WebMP, the proposed web mentoring platform. The code is divided into two directories, client and server.
Follow sequentially on first run.
-
Clone repository, navigate to
client/. -
Run
npm installfollowed by anpm run dev -
Navigate to
server/, runpipenv shellfollowed by apipenv installto set up the python virtual environment. -
Set up PostgreSQL:
- Install PostgreSQL 12.
- Switch to user postgres using
sudo -u postgres -i - Enter interactive mode using
psql - Set password such like:
\password postgres<set password> - Add the set password to path through your shell's
.rcfile (bashrc, zshrc, etc), under the nameDB_PASSWD. - Navigate to
server/, runpython3 manage.py makemigrationsfollowed by apython3 manage.py migrateto populate the database.
-
Run backend server using,
python3 manage.py runserver.
Navigate to http://localhost:3000 to view the Svelte client.
- Checkout to your branch using
git checkout <first_name>, do with-bflag, if branch not already created. - Pull from master, using
git fetch origin masterfollowed by agit merge. - 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 - Commit messages follow the following format <
[client/server] commit description> (ex:[server] Registration input sanitization) - Lint the files before pushing, use
npm run lint, to run ESLint on all.svelte, jsfiles. As a convention, spacing is done in 4 spaces. - CSS is written in SCSS, a pre-processed language. HTML classes/ids will follow the BEM structure of naming.
Individual READMEs for common bugs, will be present in both the client/ and server/ directories.