Comment system with Django REST backend and simple React Frontend.
python -m venv venv
source venv/bin/activate
#Install dependencies
pip install -r requirements.txt
#run migrations
python manage.py migrate
#load smaple json
python load_comments.py
#start server
python manage.py runserverAPI runs at http://127.0.0.1:8000/api/
cd frontend
python -m http.server 3000| Method | Endpoint | Description |
|---|---|---|
| GET | /api/comments/ | List all comments |
| POST | /api/comments/ | Create comment |
| GET | /api/comments/{id}/ | Get single comment |
| PUT | /api/comments/{id}/ | Update comment |
| DELETE | /api/comments/{id}/ | Delete comment |