Skip to content

Blue Discount is a sample project for Go microservices.

Notifications You must be signed in to change notification settings

pedrolvr/blue-discount

Repository files navigation

blue-discount

The project uses the following packages and tools:

Running locally

The project was created to run in Kubernetes. You dont need to install dependencies, such as Postgres, in your machine, because all k8s objects are used by Tilt during development. Tilt is a tool to setup the project in k8s with support to reload on changes. You get the docs to install it here, and to create a local k8s cluster is recommended Kind.

To interact with the cluster:

$ kubectl cluster-info --context kind-kind

Create a dev namespace:

$ kubectl create namespace dev

To run the project:

$ tilt up

After that, you can use a tool, such as BloomRPC, to make rpc calls on http://localhost:8000 or get the metrics on http://localhost:8083/metrics.

Testing

To test the service:

$ make test

To test with coverage:

$ make test-cov

About

Blue Discount is a sample project for Go microservices.

Topics

Resources

Stars

Watchers

Forks

Languages