Skip to content

kelam12/nestjs-realtime-chat

Repository files navigation

Realtime Chat App

A scalable real-time chat application that enables peer-to-peer messaging and group conversations. Built with NestJS for server-side logic, MongoDB for data storage, and WebSockets for instant bidirectional communication.

Features

  • User authentication with Passport and JWT
  • Real-time peer-to-peer messaging
  • Room-based group conversations
  • WebSocket integration for low-latency communication
  • MongoDB with Mongoose for data modeling
  • Command-line seeding for initial dat

Technology Stack

  • NestJS - Progressive Node.js framework
  • MongoDB - NoSQL database
  • Mongoose - MongoDB object modeling
  • WebSockets - Real-time bidirectional communication
  • Socket.IO - Real-time web application library
  • Passport - Authentication middleware
  • JWT - JSON Web Tokens for secure authentication

Project Structure

src/                - Application source code
test/               - Test files
.env.example        - Environment variables template

Installation

npm install

Running the Application

Development mode:

npm run start

Watch mode (auto-restart on changes):

npm run start:dev

Production mode:

npm run start:prod

Key Functionality

  • Secure user registration and login
  • Real-time message delivery
  • Chat room creation and participation
  • Paginated chat history
  • WebSocket-based live updates

About

A real-time chat application built with NestJS, MongoDB, and WebSockets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •