/comment-system

Realtime Commenting System

Primary LanguageJavaScript

Realtime Commenting System

Single Page Application (SPA) to demonstrate real-time comments using MERN Stack.

Video Walkthrough of Realtime Commenting System

https://youtu.be/8bGpU7fMBU0

Installation

# Clone this repository
git clone https://github.com/sairajsawant/comment-system.git

# Fire up MongoDB container
docker run -d -p 27017:27017 --restart unless-stopped --name commentsmongo mongo

# Fire up Redis container
docker run -d -p 6379:6379 --restart unless-stopped --name commentsredis redis

# Go into the backend directory
cd comment-system/backend

# Install dependencies
npm install

# Start the server
npm start

# Go into main app directory
cd ..

# Install dependencies
npm install

# Start the App
npm start

Features

  • Realtime comments & upvotes/downvotes using WebSockets & Redis

  • JWT based authorization

  • Microservice architecture using Node.js & Express

  • Caching in Redis & Persistent Storage in MongoDB using Mongoose ODM

  • Container based development using Docker

Technology Stack

  • Node.js
  • React
  • MongoDB
  • Redis
  • WebSockets
  • JWT