Skip to content

SajeevanJSPY/snapp

Repository files navigation

🚀 Snapp – Real-Time Chat App

Snapp is a blazing-fast, modern real-time chat application built with Next.js, PostgreSQL, and WebSockets. Designed to be lightweight, scalable, and developer-friendly, Snapp delivers seamless messaging with instant updates and a clean, responsive UI.


🌟 Features

  • ✅ Real-time messaging (WebSocket-powered)
  • 💬 One-on-one and group conversations
  • 🕓 Chat history stored in PostgreSQL
  • 🧑‍🤝‍🧑 Online/offline presence indicators
  • 🌓 Light/dark mode support
  • 📱 Responsive design (mobile-first)
  • 🛠️ Built with modern tools and best practices

🧱 Tech Stack

Layer Tech
Frontend Next.js (App Router)
Styling Tailwind CSS + Framer Motion
Realtime WebSockets
Backend API Next.js API routes
Auth Auth.js with JWT sessions
Database PostgreSQL
ORM Prisma

Running Locally

🐘 Step 1: Start the PostgreSQL Database with Docker

We use PostgreSQL via Docker. To start the database container, run:

    docker-compose up -d

This will spin up a detached container defined in the docker-compose.yml.

⚙️ Step 2: Set Up the .env File

Create a .env file in the root of the project:

    cp .env.example .env

🚀 Step 3: Start the Next.js Application

Now, install dependencies and start the development server:

    pnpm install
    pnpm dev

About

Real-time chat application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published