A full-stack web application built with React (frontend) and Django (backend).
├── backend/ # Django REST API
│ ├── cheat_sheet/ # Django project settings
│ ├── api/ # Main API app
│ ├── manage.py
│ └── requirements.txt
├── frontend/ # React + Vite
│ ├── src/
│ ├── package.json
│ └── vite.config.js
└── README.md
cd backend
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# create a .env file in the backend/ directory with the required settings, for example:
# DJANGO_SECRET_KEY=your-dev-secret-key
# DJANGO_DEBUG=True
# DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1
python manage.py migrate
python manage.py runserverThe API will be available at http://localhost:8000/api/.
cd frontend
npm install
npm run devdocker compose up --buildThis will build and start both the Django backend and the React frontend services using Docker.
The app will be available at http://localhost:5173/. API requests are proxied to the Django backend.