This is a real-time chat application built using Spring Boot for the backend and HTML, JavaScript, and Bootstrap for the frontend. It uses WebSockets and STOMP for real-time messaging.
- Real-time chat using WebSockets & STOMP
- Simple UI with Bootstrap
- STOMP-based message broker
- Dockerized for easy deployment
- Backend: Spring Boot, STOMP WebSockets
- Frontend: HTML, JavaScript, Bootstrap
- WebSocket Client: SockJS, STOMP.js
- Containerization: Docker
- Java 17+
- Maven
- Docker (optional for containerized deployment)
-
Clone the Repository
git clone https://github.com/Subhankar528/Real-Time-Chat.git cd chat-app -
Build the Project
mvn clean package
-
Run the Application
mvn spring-boot:run
-
Access the Chat App
- Open
http://localhost:8080/chatin your browser
- Open
| Endpoint | Description |
|---|---|
/chat |
STOMP WebSocket Endpoint |
/app/sendMessage |
Client sends messages here |
/topic/message |
Broadcasts messages to clients |
docker build -t chat-app .docker run -p 8080:8080 chat-appReplace your-dockerhub-username with your actual username:
docker tag chat-app your-dockerhub-username/chat-app:latest
docker push your-dockerhub-username/chat-app:latest- Multi-room chat support
- User authentication
- Message persistence with database
- Web3 integration
This project is open-source. Feel free to contribute! 🚀

