Skip to content

Repository files navigation

DiscordClone

🚀 Discord Clone – Real-Time Chat Application

A full-stack Discord-like real-time chat application

Features

Authentication & Authorization

JWT-based authentication

Secure login & registration

Role-based access control

One-to-one (DM) messaging

Channel-based group chats Real-Time Messaging

Real-time Send / accept / reject friend requests,Remove friends

Real-time friend status updates


Demo

image image image

Architecture

  • Backend: Java 17, Spring Boot, Spring Security, JPA, WebSocket, Redis, PostgreSQL
  • Frontend: React, TypeScript, Vite, MUI, React Query, WebSocket

Backend Setup

Prerequisites

  • Java 17+
  • Gradle
  • PostgreSQL (default: localhost:5432, DB: discord_clone)

Running Locally

  1. Clone the repository:
    git clone <repo-url>
    cd DiscordClone
  2. Configure your database and message broker in src/main/resources/application.properties if needed.
  3. Build and run the backend:
    ./gradlew bootRun
    The backend will start on http://localhost:8082.

Frontend Setup

See frontend/README.md for full details.

Quick Start

  1. Navigate to the frontend directory:
    cd frontend
  2. Install dependencies:
    npm install
  3. Start the development server:
    npm run dev
    The frontend will start on http://localhost:5173 (or as configured by Vite).


Environment Variables

  • Backend environment variables can be set in application.properties or overridden in Docker Compose.
  • Frontend environment variables can be set in .env files in the frontend directory.

Frontend

License

This project is licensed under the MIT License.

Releases

Packages

Used by

Contributors

Languages