Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 849 Bytes

File metadata and controls

40 lines (34 loc) · 849 Bytes

Steps to run mock site locally

  1. Clone/Pull repository
git clone https://github.com/matrixiitg/website.git
[First time]
git pull origin {branch_name: dev/master}
[Get new changes]
  1. Install requirements:
sudo -H pip3 install -r requirements.txt
[If installing on python global environment]
pip3 install -r requirements.txt
[If in virtual environment]
  1. Install MongoDB Follow steps at https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

  2. Start MongoDB

$ mongo
$> use matrix
$> db.createCollection('testimonials')
$> db.createCollection('profiles')
$> db.createCollection('yearbook')
$> exit
  1. Collection are created, for testing you can load test data on yearbook by running test/pymongo_import.py script
$ python3 test/pymongo_import.py
  1. Runserver & Enjoy
$ python3 matrix.py