Mosquitto MQTT - Spring Boot & Android & React JS Location Tracking App
The Project consists of 3 parts:
- Backend: Java Spring Boot
- Frontend: React JS
- Mobile: Android Kotlin
- Spring Boot
- Server Sent Events
- Mosquitto MQTT Server
- Redis
How to run ~project is completely dockerized
backend will work on port 8081 in docker and 8080 in localhost!
git clone https://github.com/gurkanucar/mqtt-example
Please firstly run this maven command to get jar file:
cd backend
mvn clean package -DskipTests
if you want to run it on local
docker-compose up --build --force-recreate -d
if you want to run it on server give your ip address as arg for frontend
EC2_IP=<MACHINE_IP> docker-compose up --build --force-recreate -d
! Don't forget to update the backend address in the mobile application.
https://youtu.be/WXTXZTauM7A