A simple Flamingo application as showcase.
Needs at least go 1.11.4 and uses go modules.
go build -o rating .
A docker-compose setup for development can be found in devenv directory.
This contains:
-
Database on mysql://localhost:33306
-
Productservice on http://localhost:8081/
-
Jaeger on http://localhost:16686/
-
Prometheus on http://localhost:9090/
-
Grafana on http://localhost:3000/
user: admin, password: password
-
Alert Manager on http://localhost:9093/
-
Node Exporter on http://localhost:9100/
-
cAdvisor on http://localhost:8080/
Simply run docker-compose up
from within devenv.
On first or new setup, the database will be empty. Run
CONTEXT=dev go run main.go migrate up
to create the schemaCONTEXT=dev go run main.go seed
to import some test data
Then start the app via CONTEXT=dev go run main.go serve
The config in config/config_dev.yml
matches the docker-compose setup.
The app will be under http://localhost:3322/ The metrics endpoint will be under http://localhost:13210/metrics
In docker-compose-standalone directory you can find a complete operational example.