Skip to content

RezEnayati/nested-comments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bobyard Take-Home

Reza Enayati

Comment system with Django REST backend and simple React Frontend.

Backend Setup

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 runserver

API runs at http://127.0.0.1:8000/api/

Frontend Setup (in a separate terminal)

cd frontend 
python -m http.server 3000

Open http://localhost: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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors