System Location Master POC.
The location-master project is a Spring Boot application that uses Kafka to send messages and manage locations, with api REST, Grafana, Azure e APIGEE
- Spring Boot
- Java 17
- Kafka
- Zookeeper
- Postgres
- Docker Compose
- Grafana http://localhost:3000/dashboards
- Unit Test JUnit
- SonarQube
- Azure Pipelines
- APIGEE API-GATEWAY, Microgateway local
- Exec Kafka with Docker Compose:
$ docker-compose up
or
$ podman-compose up
- Add /etc/hosts the hostname
kafka.
$ ./mvnw clean package
-
Run application:
-
Send Message: POST with Postman
$ POST http://localhost:8080/location-master/save
{
"name": "Central Mediterranean Area",
"locationId": "PQCU004DWJOMB",
"status": "InActive",
"bdaType": "CLUSTER",
"country": null,
"geoType": "Business Defined Area",
...
}
200 OK
- View received messages in the log:
Consumer Message: send message locationLocation{id=null, name='Central Mediterranean Area', locationId='PQCU004DWJOMB', status='InActive', bdaType='CLUSTER'}
- View Data in Postgres
Using pgAdmin or DBeaver tool to view the data in the location_master database.
- Grafana
Access Grafana in http://localhost:3000 (user: admin, password: admin).
- SonarQube
Access SonarQube in http://localhost:9000/projects
- OpenAPi
mvn clean generate-sources
-
