This project has a React frontend (using Vite) and a Django backend.
cd frontend
npm install
npm run devBackend code is located in the backend/ folder.
- Python 3.10+
- pip
- Virtualenv (recommended)
cd backend
python3 -m venv env # Create virtual environment
source env/bin/activate # Activate it (Linux/WSL)
pip install -r requirements.txt # Install dependenciesCreate a .env file inside the backend/ directory (same level as manage.py):
SECRET_KEY=your-secret-key
DEBUG=True
Use
python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'to generate a secret key.
python manage.py migrate # Apply migrations
python manage.py runserver # Run the development serverVisit: http://127.0.0.1:8000/
| Role | Developer Responsibility |
|---|---|
| Developer 1 | Backend setup, DRF config, CORS, env management |
| Developer 2 | Moods API endpoint (/api/moods) |
| Developer 3 | Journal entries API mock (/api/notes) |
Make sure the following are ignored:
.env
env/
__pycache__/
*.pyc