Skip to content

Commit b80983d

Browse files
Initial commit
0 parents  commit b80983d

26 files changed

+9490
-0
lines changed

.gitignore

Lines changed: 261 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,261 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# Snowpack dependency directory (https://snowpack.dev/)
45+
web_modules/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Microbundle cache
57+
.rpt2_cache/
58+
.rts2_cache_cjs/
59+
.rts2_cache_es/
60+
.rts2_cache_umd/
61+
62+
# Optional REPL history
63+
.node_repl_history
64+
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# dotenv environment variables file
72+
.env
73+
.env.test
74+
75+
# parcel-bundler cache (https://parceljs.org/)
76+
.cache
77+
.parcel-cache
78+
79+
# Next.js build output
80+
.next
81+
out
82+
83+
# Nuxt.js build / generate output
84+
.nuxt
85+
dist
86+
87+
# Gatsby files
88+
.cache/
89+
# Comment in the public line in if your project uses Gatsby and not Next.js
90+
# https://nextjs.org/blog/next-9-1#public-directory-support
91+
# public
92+
93+
# vuepress build output
94+
.vuepress/dist
95+
96+
# Serverless directories
97+
.serverless/
98+
99+
# FuseBox cache
100+
.fusebox/
101+
102+
# DynamoDB Local files
103+
.dynamodb/
104+
105+
# TernJS port file
106+
.tern-port
107+
108+
# Stores VSCode versions used for testing VSCode extensions
109+
.vscode-test
110+
111+
# yarn v2
112+
.yarn/cache
113+
.yarn/unplugged
114+
.yarn/build-state.yml
115+
.yarn/install-state.gz
116+
.pnp.*
117+
118+
# Created by https://www.toptal.com/developers/gitignore/api/python
119+
# Edit at https://www.toptal.com/developers/gitignore?templates=python
120+
121+
### Python ###
122+
# Byte-compiled / optimized / DLL files
123+
__pycache__/
124+
*.py[cod]
125+
*$py.class
126+
127+
# C extensions
128+
*.so
129+
130+
# Distribution / packaging
131+
.Python
132+
build/
133+
develop-eggs/
134+
dist/
135+
downloads/
136+
eggs/
137+
.eggs/
138+
lib/
139+
lib64/
140+
parts/
141+
sdist/
142+
var/
143+
wheels/
144+
pip-wheel-metadata/
145+
share/python-wheels/
146+
*.egg-info/
147+
.installed.cfg
148+
*.egg
149+
MANIFEST
150+
151+
# PyInstaller
152+
# Usually these files are written by a python script from a template
153+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
154+
*.manifest
155+
*.spec
156+
157+
# Installer logs
158+
pip-log.txt
159+
pip-delete-this-directory.txt
160+
161+
# Unit test / coverage reports
162+
htmlcov/
163+
.tox/
164+
.nox/
165+
.coverage
166+
.coverage.*
167+
.cache
168+
nosetests.xml
169+
coverage.xml
170+
*.cover
171+
*.py,cover
172+
.hypothesis/
173+
.pytest_cache/
174+
pytestdebug.log
175+
176+
# Translations
177+
*.mo
178+
*.pot
179+
180+
# Django stuff:
181+
*.log
182+
local_settings.py
183+
db.sqlite3
184+
db.sqlite3-journal
185+
186+
# Flask stuff:
187+
instance/
188+
.webassets-cache
189+
190+
# Scrapy stuff:
191+
.scrapy
192+
193+
# Sphinx documentation
194+
docs/_build/
195+
doc/_build/
196+
197+
# PyBuilder
198+
target/
199+
200+
# Jupyter Notebook
201+
.ipynb_checkpoints
202+
203+
# IPython
204+
profile_default/
205+
ipython_config.py
206+
207+
# pyenv
208+
.python-version
209+
210+
# pipenv
211+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
212+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
213+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
214+
# install all needed dependencies.
215+
#Pipfile.lock
216+
217+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
218+
__pypackages__/
219+
220+
# Celery stuff
221+
celerybeat-schedule
222+
celerybeat.pid
223+
224+
# SageMath parsed files
225+
*.sage.py
226+
227+
# Environments
228+
.env
229+
.venv
230+
env/
231+
venv/
232+
ENV/
233+
env.bak/
234+
venv.bak/
235+
pythonenv*
236+
237+
# Spyder project settings
238+
.spyderproject
239+
.spyproject
240+
241+
# Rope project settings
242+
.ropeproject
243+
244+
# mkdocs documentation
245+
/site
246+
247+
# mypy
248+
.mypy_cache/
249+
.dmypy.json
250+
dmypy.json
251+
252+
# Pyre type checker
253+
.pyre/
254+
255+
# pytype static type analyzer
256+
.pytype/
257+
258+
# profiling data
259+
.prof
260+
261+
# End of https://www.toptal.com/developers/gitignore/api/python

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# WebMP: Web Mentoring Platform
2+
3+
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 &lt;`[client/server] commit description`&gt; (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.
33+
34+

SRS_DOC.pdf

30.2 KB
Binary file not shown.

client/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.DS_Store
2+
/node_modules/
3+
/src/node_modules/@sapper/
4+
yarn-error.log
5+
/__sapper__/

0 commit comments

Comments
 (0)