Skip to content

Sarvesh2005-code/relay-realtime-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Relay — Real-Time Chat Backend

A scalable real-time chat backend built using Spring Boot. Designed to handle real-time messaging for both web and mobile clients using WebSockets.


🔥 Features

  • 💬 Real-time messaging (WebSocket)
  • 🔐 JWT-based authentication (coming soon)
  • 👤 User registration & login
  • 📦 Message persistence (JPA + DB)
  • ⚡ High-performance backend architecture
  • 🌐 Supports both Web & Mobile clients

🧠 Tech Stack

  • Java 25
  • Spring Boot
  • Spring WebSocket
  • Spring Security (JWT)
  • Spring Data JPA
  • PostgreSQL / H2 (development)
  • Maven

🏗️ Architecture

Client → REST API → Service → Repository → Database Client ↔ WebSocket ↔ Server ↔ Database


📁 Project Structure

com.sarvy.relay
│
├── controller/
├── service/
├── repository/
├── model/
├── dto/
├── config/
├── security/
└── RelayApplication.java

⚙️ Getting Started

1️⃣ Clone the repository

git clone https://github.com/Sarvesh2005-code/relay-realtime-chat.git
cd relay-realtime-chat

2️⃣ Run the application

Make sure Java 25 is installed.

mvn spring-boot:run

3️⃣ Access API

http://localhost:8080

🧪 Development Setup

  • H2 in-memory database for quick setup
  • PostgreSQL for production

🚀 Future Enhancements

  • ✅ JWT Authentication
  • ✅ Private & Group Chats
  • ✅ Typing Indicators
  • ✅ Read Receipts
  • ✅ Redis for scalability
  • ✅ Docker deployment

🎯 Goal

This project is built to demonstrate:

  • Real-time system design
  • Backend scalability
  • Clean architecture using Spring Boot

👨‍💻 Author

Sarvesh Nakhale Java Backend Developer | Spring Boot Enthusiast


⭐ If you like this project

Give it a star ⭐ and follow for more!

About

Scalable real-time chat backend built with Spring Boot, WebSockets, and JWT authentication. Designed to support web and mobile clients with production-ready architecture.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages