To run this project in your development machine, follow these steps:
-
(optional) Create and activate a virtualenv (you may want to use virtualenvwrapper).
-
Fork this repo and clone your fork:
git clone https://github.com/jpatel0/caas-backend.git
-
Install dependencies:
pip install -r requirements.txt
-
Install mysql server and create a database with name
nervaidb
(or give any other name) -
Change field values like user,db name(same name as in above step), password, port,etc in
main_site/settings.py
-
Finally run these commands to sync your models with database:
python manage.py makemigrations user userpanel
python manage.py migrate
-
Inserting initial data of userpanel_language table in nervaidb database:
python manage.py loaddata Language.json
-
If everything is alright, you should be able to start the Django development server:
python manage.py runserver
-
Open your browser and go to http://127.0.0.1:8000