🚀 Discord Clone – Real-Time Chat Application
A full-stack Discord-like real-time chat application
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
- Backend: Java 17, Spring Boot, Spring Security, JPA, WebSocket, Redis, PostgreSQL
- Frontend: React, TypeScript, Vite, MUI, React Query, WebSocket
- Java 17+
- Gradle
- PostgreSQL (default:
localhost:5432, DB:discord_clone)
- Clone the repository:
git clone <repo-url> cd DiscordClone
- Configure your database and message broker in
src/main/resources/application.propertiesif needed. - Build and run the backend:
The backend will start on http://localhost:8082.
./gradlew bootRun
See frontend/README.md for full details.
- Navigate to the frontend directory:
cd frontend - Install dependencies:
npm install
- Start the development server:
The frontend will start on http://localhost:5173 (or as configured by Vite).
npm run dev
- Backend environment variables can be set in
application.propertiesor overridden in Docker Compose. - Frontend environment variables can be set in
.envfiles in thefrontenddirectory.
- See frontend/README.md for frontend testing instructions.
This project is licensed under the MIT License.