Full stack project using a simple React frontend and Django backend. These components can be ran individually or as a multi-container Docker project.
Features CRUD capabilites using Django backend/builtin database to serve as a RESTful endpoint. Uses the Django Rest Framework
- python 3.6+ (tested)
- djangorestframework library
pip3 install djangorestframework
- npm/node
- Docker desktop (if using Docker deployment)
Create virtual environment (optional)
python -m venv env
env\Scripts\python.exe -m pip install -r requirements.txt
Start here if skipping virtual env
pip3 install -r requirements.txt
python manage.py runserver
- Go to https://localhost:8000/api/ (unless port specified otherwise)
cd DjangoRestAPI/general_store
python3 manage.py runserver
- Go to https://localhost:8000/api/ (unless port specified otherwise)
cd DjangoRestAPI/general_store/frontend
npm install
npm start
- Got to https://localhost:3000/ with backend running to see data
requires docker-compose
docker-compose up
from root directory
- Frontend: https://localhost:3000/
- Backend: https://0.0.0.0:8000/api or https://localhost:8000/api
-
Create catalog of url patterns
-
Achieve CRUD functionality using API decorators (function based)
- Global Get
- instance Get
- instance Post
- instance Put
- instance Delete
-
Create data model
-
Serialize data
-
Add superuser
-
Add basic frontend
-
Dockerize project