Skip to content
AlphaBeast97Public

About

πŸ’¬ Raabta β€” Real-time chat app built with React, Socket.io & Express. Voice notes, themes, wallpapers, and more.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

37 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Raabta

Raabta

A modern, real-time messaging app.
Live Demo β†’

Raabta Screenshot


Raabta means connection β€” and that's exactly what it does. Chat instantly with anyone, share media, record voice notes, and make the space your own with accent themes, wallpapers, and dark mode.

Features

Real-time messaging Instant delivery via Socket.io
Voice notes Record and send audio right from the composer
Media sharing Images and videos uploaded through ImageKit
Theme presets 11 accent colors β€” Sky, Lavender, Mint, and more
Dark mode Automatic light/dark with manual toggle
Wallpaper picker 13 chat backdrops to personalize your space
Authentication Powered by Clerk β€” Google, GitHub, email, and more
Online presence Live online/offline indicators
Sound effects Optional keyboard click sounds
Responsive Works on desktop and mobile

Tech Stack

Frontend React 19, Vite 8, Tailwind CSS v4, HeroUI 3, Zustand 5
Backend Express 5, Mongoose 9, Socket.io 4
Auth Clerk (React SDK + Express SDK)
Media ImageKit
Database MongoDB
Icons Lucide React
Deployment Docker (3-stage monolith), Render

Getting Started

Prerequisites

  • Node.js 22+
  • A MongoDB instance (Atlas free tier works)
  • A Clerk account
  • An ImageKit account

Clone

git clone https://github.com/yourusername/raabta.git
cd raabta

Backend

cd backend
cp .env.example .env   # or create .env from scratch

Edit backend/.env with your keys:

PORT=3000
MONGO_URI=mongodb+srv://<user>:<pass>@cluster.mongodb.net/raabta
CLERK_PUBLISHABLE_KEY=pk_live_...
CLERK_SECRET_KEY=sk_live_...
CLERK_WEBHOOK_SIGNING_SECRET=whsec_...
IMAGEKIT_PRIVATE_KEY=private_...
FRONTEND_URL=http://localhost:5173
NODE_ENV=development
npm install
npm run dev

The API starts at http://localhost:3000.

Frontend

Open a second terminal:

cd frontend

Create frontend/.env:

VITE_CLERK_PUBLISHABLE_KEY=pk_live_...
MODE=development
npm install
npm run dev

Open http://localhost:5173 β€” you're in.

Docker (Monolith)

docker build \
  --build-arg VITE_CLERK_PUBLISHABLE_KEY=$VITE_CLERK_PUBLISHABLE_KEY \
  -t raabta .

docker run -p 3001:3001 \
  -e MONGO_URI=$MONGO_URI \
  -e CLERK_SECRET_KEY=$CLERK_SECRET_KEY \
  -e CLERK_PUBLISHABLE_KEY=$CLERK_PUBLISHABLE_KEY \
  -e CLERK_WEBHOOK_SIGNING_SECRET=$CLERK_WEBHOOK_SIGNING_SECRET \
  -e IMAGEKIT_PRIVATE_KEY=$IMAGEKIT_PRIVATE_KEY \
  -e FRONTEND_URL=$FRONTEND_URL \
  raabta

Environment Variables

Backend

Variable Required Default Description
PORT No 3000 Server port
MONGO_URI Yes β€” MongoDB connection string
CLERK_PUBLISHABLE_KEY Yes β€” Clerk publishable key
CLERK_SECRET_KEY Yes β€” Clerk secret key
CLERK_WEBHOOK_SIGNING_SECRET Yes β€” Clerk webhook secret
IMAGEKIT_PRIVATE_KEY Yes β€” ImageKit private key
FRONTEND_URL No http://localhost:5173 CORS origin
NODE_ENV No β€” development or production

Frontend

Variable Required Description
VITE_CLERK_PUBLISHABLE_KEY Yes Clerk publishable key (same as backend)
MODE No development or production

Project Structure

raabta/
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ controllers/       # Route handlers
β”‚   β”‚   β”œβ”€β”€ lib/               # DB, socket, ImageKit, cron
β”‚   β”‚   β”œβ”€β”€ middleware/         # Auth guard, file upload
β”‚   β”‚   β”œβ”€β”€ models/            # Mongoose schemas
β”‚   β”‚   β”œβ”€β”€ routes/            # Express routers
β”‚   β”‚   β”œβ”€β”€ webhooks/          # Clerk webhook handler
β”‚   β”‚   └── index.js           # Entry point
β”‚   └── package.json
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ public/                # Static assets
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/        # React UI components
β”‚   β”‚   β”‚   β”œβ”€β”€ auth/          # Auth page pieces
β”‚   β”‚   β”‚   └── chat/          # Chat interface pieces
β”‚   β”‚   β”œβ”€β”€ context/           # Theme & wallpaper providers
β”‚   β”‚   β”œβ”€β”€ data/              # Theme presets & wallpaper definitions
β”‚   β”‚   β”œβ”€β”€ hooks/             # Custom React hooks
β”‚   β”‚   β”œβ”€β”€ lib/               # Axios, ImageKit client, utilities
β”‚   β”‚   β”œβ”€β”€ pages/             # AuthPage, ChatPage
β”‚   β”‚   β”œβ”€β”€ store/             # Zustand stores
β”‚   β”‚   β”œβ”€β”€ styles/            # CSS theme presets
β”‚   β”‚   β”œβ”€β”€ App.jsx
β”‚   β”‚   β”œβ”€β”€ main.jsx
β”‚   β”‚   └── index.css
β”‚   └── package.json
β”œβ”€β”€ docs/
β”‚   └── app_screenshot.png
β”œβ”€β”€ Dockerfile                 # 3-stage monolith build
└── README.md

Scripts

Backend

Script Command Description
dev node --watch src/index.js Dev server with auto-restart
start node src/index.js Production start
build cp -R src dist Bundle for deployment

Frontend

Script Command Description
dev vite Dev server with HMR
build vite build Production build
preview vite preview Preview production build
lint oxlint Run linter

Deployment

The app ships as a single Docker container. The Dockerfile uses a 3-stage build:

  1. frontend-build β€” builds the Vite SPA
  2. backend-build β€” prepares the Express source
  3. runner β€” minimal runtime with production dependencies + both artifacts

Express serves the SPA's static files from ./public in production. Designed for Render or any container platform.

About the Name

Raabta (رابطہ) is an Urdu word meaning connection or relationship.

About

πŸ’¬ Raabta β€” Real-time chat app built with React, Socket.io & Express. Voice notes, themes, wallpapers, and more.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages