Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.43 KB

README.md

File metadata and controls

45 lines (29 loc) · 1.43 KB

flamingo-product-rating Build Status

A simple Flamingo application as showcase.

Building the app

Needs at least go 1.11.4 and uses go modules.

go build -o rating .

Development setup

A docker-compose setup for development can be found in devenv directory.

This contains:

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 schema
  • CONTEXT=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

Standalone example

In docker-compose-standalone directory you can find a complete operational example.