Skip to content

vanessaholland/recipe-app-api

Repository files navigation

recipe-app-api

django rest api

Running the app

docker-compose up

Running the tests

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

Linting

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

View API docs

docker-compose up http://127.0.0.1:8000/api/docs

Create migrations based on model changes

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

Run migrations

docker-compose run --rm app sh -c "python manage.py wait_for_db && python manage.py migrate"

Making new apps

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

Create a superuser

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

About

django rest api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published