This repository provides a sample application based upon the Todo-backend project.
$ pipenv shell
(todobackend) $ pipenv install -r src/requirements.txt
$ pipenv shell
(todobackend) $ pipenv install -r src/requirements_test.txt
(todobackend) $ cd src
(todobackend) $ python manage.py test --settings todobackend.settings_test
$ docker build -t todobackend-release .
$ docker run -it --rm -p 8000:8000 todobackend-release uwsgi \
--http=0.0.0.0:8000 --module=todobackend.wsgi --master
$ docker-compose build test
$ docker-compose run test
$ docker-compose up release # build + run
$ docker-compose down -v
$ docker-compose up migrate
# do it before docker-compose up app
$ docker-compose run app python3 manage.py collectstatic --no-input
$ docker-compose up acceptance
$ make test # run unit test
$ make release # launch the app
$ make clean # stop the app, clean the image