Skip to content
Ksohaib16Public

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Full-Stack Chat Application

Real-time chat application built with React, Node.js, Express, and PostgreSQL.

Tech Stack

  • Frontend: React + Vite
  • Backend: Node.js + Express + Prisma
  • Database: PostgreSQL
  • Infrastructure: Docker

Quick Start

Prerequisites

  • Docker
  • Docker Compose

Running the Application

  1. Clone the repository:
git clone https://github.com/Ksohaib16/Chat-App.git>
cd <project-folder>
  1. Create environment file:
DATABASE_URL="postgresql://postgres:password@db:5432/postgres"
  1. Start services:
docker-compose up --build
  1. Access the application:

Project Structure

chat-app/
├── backend/
│   ├── src/
│   │   ├── prisma/
│   │   │   ├── schema.prisma
│   │   │   └── migrations/
│   ├── Dockerfile
│   ├── package.json
│   └── .env
├── frontend/
│   ├── src/
│   ├── Dockerfile
│   ├── package.json
│   └── vite.config.js
├── docker-compose.yml
└── README.md

API Endpoints

  • Auth:
    • POST /v1/auth/otp - Request OTP for signup
    • POST /v1/auth/login - User login
  • Chat:
    • GET /v1/user/conversations - Fetch user conversations

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages