graph TD
A[Frontend] -->|WebSocket| B(MQTT Broker)
A -->|HTTP| C(Express Server)
C -->|Publish| B
B -->|Subscribe| A
This project demonstrates a simple real-time update system using MQTT for messaging and Express for HTTP requests.
- Install Docker and Docker Compose
- Clone this repository
- Run
docker-compose up --build
in the project root - Navigate to the
frontend
directory - Run
npm install
- Run
npm start
- Open the app in multiple browser windows
- Enter a message and click "Send" in any window
- Observe the message appearing in all windows in real-time
- Backend: Node.js, Express, MQTT
- Frontend: React
- Infrastructure: Docker, Mosquitto MQTT Broker
MIT