A full-stack quiz application built using:
- React + Vite (Frontend)
- Django + Django REST Framework (Backend)
This document explains how to set up and run both the frontend and backend.
Make sure you have these installed:
- Node.js (>= 18)
- npm
- Python (>= 3.10)
- pip
- Virtualenv (optional but recommended)
- Git
.
├── frontend/
│ └── prepee-fe/ # Vite + React frontend
└── backend/
├── venv/ # Python virtual environment (ignored from Git)
└── prepee-be/ # Django backend project
cd backendpython -m venv venvvenv\Scripts\activatesource venv/bin/activatepip install -r prepee-be/requirements.txtcd prepee-be
python manage.py migratepython manage.py runserverBackend will run at: http://127.0.0.1:8000/
cd frontend/prepee-fenpm installnpm run devFrontend will run at: http://127.0.0.1:5173/ (default Vite port)
ignore this for now
Make sure your frontend .env contains something like:
VITE_API_URL=http://127.0.0.1:8000/api
Then in React:
fetch(`${import.meta.env.VITE_API_URL}/endpoint/`)Open two terminals:
cd backend/prepee-be
python manage.py runserver
cd frontend/prepee-fe
npm run dev
cd frontend/prepee-fe
npm run buildCollect static files:
python manage.py collectstatic- Fork the repo
- Create a new branch
- Commit your changes
- Push and open a PR
This project is licensed under the MIT License.