/books

Bookstore using Django, Postgres database and Docker.

Primary LanguagePython

Books

  • 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/

Commands to run this project

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

http://localhost:8000/admin/

Stop container

docker-compose down