/recipe-app-api

Recipe app API build with Python, Django-DjangoREST and Docker

Primary LanguagePythonMIT LicenseMIT

Recipe App API

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:

  1. Build Docker image: docker build . or sudo 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.

  2. Build Docker Compose: docker-compose build or sudo docker-compose build. This will prepare the services described in docker-compose.yml file.

  3. Create Django project: sudo docker-compose run app sh -c "django-admin.py startproject app ."