MA
manishdait/springboot-websocket
A lightweight real-time sticky notes app built with React, and Spring Boot to demonstrate websocket
Sticky Notes โ Websocket Example
A lightweight real-time sticky notes app built with React, and Spring Boot.
Users can create, update, move, and delete notes, and all changes instantly sync across connected clients.
๐ Features
- โ Create Notes โ Instantly add a new note to the board.
- โ๏ธ Edit Notes โ Update text in real-time, synced across all users.
- ๐๏ธ Delete Notes โ Remove notes and broadcast deletions to everyone.
- ๐ฏ Drag & Move Notes โ Each note can be repositioned on the board.
- โก Live Collaboration โ All actions propagate via Spring WebSocket in real time.
- ๐พ In-Memory DB โ Uses H2 Database for simplicity and auto reset on restart.
๐ ๏ธ Tech Stack
- Frontend: React + TypeScript + Vite
- Backend: Spring Boot (Java)
- Database: H2 (in-memory)
โ๏ธ Setup
๐ฅ Backend (Spring Boot)
# Navigate to backend folder
cd server
# Build and run
./mvnw spring-boot:runThe backend starts at http://localhost:8080
You can access the H2 console at ๐ http://localhost:8080/h2-console
๐ป Frontend (React + Vite)
# Navigate to frontend folder
cd client
# Install dependencies
bun install
# Run the app
bun dev
Frontend will run at http://localhost:5173
๐ผ๏ธ Result
On this page
Languages
Java45.4%TypeScript44.5%JavaScript5.6%HTML2.8%CSS1.7%
Contributors
Created December 9, 2024
Updated November 10, 2025
