This is a guided project from the Udemy course Build a Backend REST API with Python & Django - Advanced.
To test this project, you only need Git (or other VSC) and Docker. Caveat: you'll need a Linux distro, macOS or Windows Pro to run Docker; isn't supported by Windows Home. Download: Windows/Mac, Linux (you'll also need Docker Compose separately on Linux)
Use the following commands to setup this project locally:
-
Build Docker image:
docker build .
orsudo docker build .
if you haven't setting up Docker as root user. This command will execute the Dockerfile file of the project. That will prepare your environment with all the needed tools. -
Build Docker Compose:
docker-compose build
orsudo docker-compose build
. This will prepare the services described in docker-compose.yml file. -
Create Django project:
sudo docker-compose run app sh -c "django-admin.py startproject app ."