Skip to content

Athavanvelmurugan/SmartMessenger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’¬ SmartMessenger β€” Real-Time Chat System

A fully functional real-time chat application inspired by WhatsApp.
Built with Spring Boot (Java 17), WebSocket, and MySQL, featuring live message updates, REST API integration, and a modern responsive frontend.


πŸ“Έ Project Screenshots

Connect Page Chat Client Chat Server
Connect Chat Server

πŸŽ₯ Live Working Demo

🟒 Watch full system in action below (auto-play animation in README itself)


🧩 System Architecture Overview

SmartMessenger System Architecture

🧠 Core Flows

  • WebSocket /chat β†’ Live message send & receive
  • REST API /api/messages/{userA}/{userB} β†’ Retrieve conversation history
  • /api/health β†’ Monitor system uptime

βš™οΈ Technology Stack

Layer Technology Purpose
Backend Java 17 + Spring Boot REST API + WebSocket server
Database MySQL Persistent message storage
ORM Spring Data JPA Entity <-> Table mapping
JSON Jackson Message serialization
Logging SLF4J + Logback Application monitoring
Frontend HTML5, CSS3, JavaScript WebSocket client & REST API UI
Build Tool Maven Dependency management
CORS @CrossOrigin Secure browser communication

🧱 Backend Components

Component Description
Message Entity Defines message structure (id, fromUser, toUser, body, timestamp, status)
MessageRepository Extends JpaRepository β€” CRUD + custom queries
ChatService Core business logic (save, update status, fetch history)
MessageController REST endpoints (/api/messages, /api/health)
WebSocketHandler Real-time socket events (auth, msg, ack)

βš™οΈ Setup Instructions

πŸ”§ Backend (Spring Boot)

# Clone the repository
git clone https://github.com/yourusername/smartmessenger.git

# Open in IntelliJ IDEA or VS Code
# Configure your MySQL credentials inside src/main/resources/application.properties

# Run the Spring Boot Application
mvn spring-boot:run

🌐 Frontend

# Navigate to the frontend directory
cd frontend

# Open the HTML file (you can also use VS Code Live Server)
open index.html

πŸ‘¨β€πŸ’» Author

Athavan V
πŸ’Ό Java | Spring Boot | MySQL | WebSocket | Frontend Developer

πŸ“§ Contact Me:

About

πŸ’¬ SmartMessenger β€” Real-time chat application with Spring Boot, WebSocket & MySQL. Full-stack project with live messaging, REST API, and responsive frontend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors