GitHub - Demartins/location_master: Poc Location Master · GitHub
Skip to content

Demartins/location_master

Repository files navigation

Location Master Poc

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

Technologies

How to Run

  • 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
- 

About

Poc Location Master

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors