This back-end API is a Django application that connects to the PostgreSQL DB and exposes an API to the front-end.
This project was bootstrapped with django-admin startproject mysite
. Details for startproject available in this tutorial.
In the project directory, you can run the following commands.
To get to the project directory, login to the docker conatainer with the following command: docker exec -it container_id /bin/bash
where container_id
is the id of the docker backend container. This id can be found by running docker ps
.
Launches the test runner in the interactive watch mode.
See the section about Running tests for more information.
Creates new migrations based on the changes you've made to your models.
Applies migrations that haven't been migrated yet.
Lists project's migrations and their status.
Migrates to a previous specified version.
See Django Migrations for more information.