CambodiaDJ-Raven/java-messenger
Java swing messenger real-time chat with nodejs as server
Java Messenger
This is a simple messenger application built with Java Swing for the client, Node.js for the API server, and Socket.IO for real-time communication. The client interface is styled using FlatLaf to provide a modern desktop UI.
Note: This project is still in development.

Messenger Server (Node.js)
Folder contents:
.
└── messenger-server/
├── src
├── Dockerfile
├── docker-compose.yml
├── .env
└── db/
└── messenger_db.sql
Running the Server with Docker
1. Make sure Docker is installed
docker --version
2. Navigate to the server folder
cd messenger-server
3. Build and start the server + MySQL
docker compose up --build
This will:
- Build the Node.js server from
Dockerfile - Start a MySQL 8.0 database
- Import the SQL file from
db/messenger_db.sql
4. Wait for MySQL to finish starting
The first startup may take a few seconds. watch the terminal until both containers show ready messages.
Library Resources (Client)
- FlatLaf - Modern cross-platform look and feel for Java Swing.
- MigLayout - Flexible layout management.
- Swing Modal Dialog - Modal and toast notification.
Similar Projects
Discover other similar projects and AI models.
FlatLaf - Swing Look and Feel (with Darcula/IntelliJ themes support)
Swing toast notifications use for java desktop application
Bidirectional and low-latency communication for every platform
Instant messaging platform. Backend in Go. Clients: Swift iOS, Java Android, JS webapp, scriptable command line; chatbots