Copy .env.example
to .env
and fill variables
- Create database:
# create user krddevdays with password 'krddevdays'; # create database krddevdays owner krddevdays;
- Initial virtualenv:
$ pipenv --python 3.7 $ pipenv sync
- Migrate database:
$ ./manage.py migrate $ ./manage.py createsuperuser
- Build:
$ docker-compose build
- Start:
$ docker-compose up postgres $ docker-compose up app
- Run management command like:
$ docker exec -it backend_app_1 /bin/sh /app # ./manage.py createsuperuser
# pipenv install --dev
# ./manage.py test --keepdb