A basic Django REST API with the Django djangorestframework
(with a 90s music theme)
The JSON response can be accessed via http://127.0.0.1:8000/api/
- Clone the repo.
- Make sure you have poetry (python environment and dependency manager) installed.
- In the project folder run
poetry install
to install dependencies. - Run
poetry shell
to open a new shell with all dependencies available. - Run
cd backend && python manage.py runserver
- Go to http://127.0.0.1:8000/api/ to view the JSON response
See the DATABASES
entry in backend/settings.py
djangorestframework
- Data model serialization (see
shows/views.py
)
- Fetch API data from backend via a React App
- BASIC_POETRY_DJANGO_SETUP.md contains instructions to set up the basics of this project
- HOW_TO.md contains a step-by-step instruction to recreate this project.