flamingo-product-rating

command module
v0.0.0-...-6f8c8e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 14 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL