- Clone/Pull repository
git clone https://github.com/matrixiitg/website.git
[First time]
git pull origin {branch_name: dev/master}
[Get new changes]
- Install requirements:
sudo -H pip3 install -r requirements.txt
[If installing on python global environment]
pip3 install -r requirements.txt
[If in virtual environment]
-
Install MongoDB Follow steps at https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
-
Start MongoDB
$ mongo
$> use matrix
$> db.createCollection('testimonials')
$> db.createCollection('profiles')
$> db.createCollection('yearbook')
$> exit
- Collection are created, for testing you can load test data on yearbook by running test/pymongo_import.py script
$ python3 test/pymongo_import.py
- Runserver & Enjoy
$ python3 matrix.py