API and Backend for tunga.io
- run the following commands from project root (preferably in a virtualenv)
pip install -r requirements.txt
python manage.py migrate
python manage.py initial_tags
python manage.py initial_tunga_settings
python manage.py initial_tunga_integration_events
- Install Redis
- Install WeazyPrint (PDF generation)
- run these commands from project root
python manage.py runserver
python manage.py rqworker default
python manage.py tunga_scheduler
- Access the API at http://127.0.0.1:8000/api/ and the backend at http://127.0.0.1:8000/admin/ in your browser
- run this command from project root
python manage.py test
API Documentation is generated automatically at http://127.0.0.1:8000/api/docs/ using Django REST Swagger
Install Ansible
- Push changes to
develop
branch - Run the following commands
cd .ansible
ansible-playbook deploy.yml -i env/sandbox
- Push changes to
master
branch - Run the following commands
cd .ansible
ansible-playbook deploy.yml -i env/prod