- Build a Bookstore with Django web framework.
- Add PostgreSQL database
- Run with Docker.
Based on Chapter 3 of book Django for Professionals: https://wsvincent.com/books/
Build docker image and start container
docker-compose up -d --build
[ Build docker image
docker build .
Start container (detached)
docker-compose up -d
Apply migrations
docker-compose exec web python manage.py migrate ]: #
Run automated tests
docker-compose exec web python manage.py test
Create Django superuser
docker-compose exec web python manage.py createsuperuser
Log in Django admin with the superuser credentials
Stop container
docker-compose down