Skip to content

API for managing recipes, built with Python, Django, Postgres and Docker.

Notifications You must be signed in to change notification settings

mghaznav/recipe-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8af15d8 Β· Jul 15, 2024

History

31 Commits
Jul 10, 2024
Jul 15, 2024
Jul 9, 2024
Jul 13, 2024
Jul 10, 2024
Jul 9, 2024
Jul 11, 2024
Jul 7, 2024
Jul 13, 2024

Repository files navigation

Recipe API πŸ«•

Introduction πŸš€

This is an API that supports an app where users can create, and save different recipes. This API handles user authentication, ingredient management and recipe management.

Prerequisites πŸ“

  • Docker 🐳

Running πŸƒ

To build the docker image, cd in to the recipe-api directory and run:

docker compose build

Now it should be ready to run.

To run the image, simply use the Docker command:

docker compose up

This will launch the django server and map it to port 8000 on your machine. The local server can be accessed at http://localhost:8000.

Stopping βœ‹

Press Ctrl + c to stop (yes, its Ctrl + c even on Mac 🍎)

Testing πŸ› οΈ

Unit tests can be run on the application with the following command:

docker compose run --rm app sh -c "python manage.py test"

Linting 🧹

Linting can be run on the application with the following command:

docker compose run --rm app sh -c "flake8"

About

API for managing recipes, built with Python, Django, Postgres and Docker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published