directory | description |
---|---|
api/ | Django Backend API Services |
web/ | React Frontend Web Client |
docs/ | API Documentation with Slate |
Using pyenv
- Download and setup pyenv-virtualenv
- Change directory
cd api/
- Setup pyenv:
pyenv virtualenv 3.6.4 cobra && pyenv local cobra
Using virtualenv
- Download and setup virtualenv
- Change directory
cd api/
- Setup virtualenv:
virtualenv --python=python3.6 .cobraenv && source .cobraenv/bin/activate
Installing dependencies && run server
- Install dependencies:
pip install -r requirements/dev.txt
- Migrate database:
./manage.py makemigrations
and then./manage.py migrate
- Run server:
./manage.py runserver
Using PyCharm
- Change directory:
cd web
- Install and run server:
yarn && yarn start