A full-stack web application built with Django REST Framework and React.js that provides a YouTube/Reddit-style comment system with full CRUD functionality and like/dislikes.
- View Comments: Displays all comments with author, text, date, likes, and profile images
- Add Comments: Add new comments as "Admin" user with current timestamp
- Edit Comments: Click "Edit" button to modify comment text inline
- Delete Comments: Click "Delete" button with confirmation dialog
- Like/Dislike Toggle: Click 👍 or 👎 buttons to toggle like/dislike states
- Avatar System: Default avatar generation for users without profile pictures
- Real-time Updates: UI updates immediately after any operation
- Framework: React
- Styling: Tailwind CSS
- Language: TypeScript
- Framework: Django REST Framework
- Database: PostgreSQL
git clone https://github.com/RoeyR1/CommentSystem.git
cd CommentSystem
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
createdb comments_db
createuser -s postgres
python manage.py makemigrations
python manage.py migrate
python manage.py load_comments
python manage.py runserver
The backend API will be available at http://localhost:8000/api/comments/
cd frontend
npm install
npm start
The frontend will be available at http://localhost:3000