sairajsawant / comment-system

Realtime Commenting System

Home Page:https://dev.to/sairajsawant/building-a-real-time-comment-system-in-mern-using-websockets-2b9d

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Realtime Commenting System

https://dev.to/sairajsawant/building-a-real-time-comment-system-in-mern-using-websockets-2b9d


Languages

Language:JavaScript 95.2%Language:CSS 2.2%Language:HTML 2.1%Language:Shell 0.4%