GitHunt
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:run

The 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

Demo.png

Languages

Java45.4%TypeScript44.5%JavaScript5.6%HTML2.8%CSS1.7%

Contributors

Created December 9, 2024
Updated November 10, 2025
manishdait/springboot-websocket | GitHunt