- Install docker-engine
- Install docker-compose
- Install docker-machine
- Install virtualbox
- Run command docker-compose up --build
- server available at address: 127.0.0.1:10853
- credentials superuser for access to admin page and api-docs:
- username: test_user
- email: test@test.com
- password: testpass1234
For clear all docker images run command sh docker-destroy-all.sh
docker-compose run project python manage.py test --noinput
-
Install dependencies
-
Create database
- sudo -u postgres psql -f tools/sql/create_db.sql
- sudo -u postgres psql -f tools/sql/create_test_db.sql
- python manage.py migrate
WARNING: DO NOT RUN TESTS ON PRODUCTION SERVER!