(nice EcellWeb2k19 is very cluttered with old builds and huge repo size this repo is created) API for ECell NIT Raipur android application and website.
To Setup this Project and contribute follow below guidelines.
-
First fork the repo and clone it using
https://github.com/<Your-Username>/ecell-main-server.git
-
Change the CWD to the project folder
cd ecell-main-server/
-
Make virtual Environment (Python version recommeded = v3.6)
virtualenv --python=/usr/bin/python<version> myenv
-
Activate the Virtual Environment
source myenv/bin/activate
-
Install requirements.txt
pip install -r requirements.txt
-
Make a copy of
.env.save
to.env
and change the values of variables with original values. -
Setup MYSQL Database with given credentials
DATABASE NAME : ecelldb
USERNAME : root
PASSWORD : datapostgres
-
Make all the Migrations
python manage.py makemigrations
-
Run Migration command
python manage.py migrate
-
Make a superuser for admin panel
python manage.py createsuperuser
-
Run the server
python manage.py runserver