Skip to content

A simple real-time chat application using Spring Boot WebSocket with StompJS

Notifications You must be signed in to change notification settings

justanoobcoder/realtime-chat-spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-time chat application

This is a simple real-time chat application using Spring Boot Websocket

Screenshots

Pic1

Technologies

  • Server: Spring Boot, WebSocket with Stomp
  • Client: HTML, JavaScript, JQuery, AJAX, StompJS
  • Database: In-memory H2 database

Features

  • Register
  • Login
  • Real-time chat

How to use

With Docker

Simply run command docker compose up -d, then open browser with url http://127.0.0.1:5500, open more browsers to test the chat app.

Run docker compose down to stop the app.

Without Docker

Start server: go to server/ folder, run command mvnw spring-boot:run to start the server.

Start client: go to client/ folder, open this folder using Visual Studio Code with Live Server extension.

Open brower with url http://127.0.0.1:5500, open more browsers to test the chat app.

To do

  • Chat one-to-one
  • Create chat group, invite user to group
  • Use database to save messages