/SimpleMicroservice

A simple microservice project

Primary LanguageGo

Simple Microservice

Docker

# Build the Docker image
docker build -t my-go-microservice .

# Run the container
docker run -p 8999:8080 my-go-microservice

Then visit localhost:8999 in your browser.

$ curl localhost:8999/order
> Order received: 166412168

Kubernetes

cd k8s/ && chmod +x deploy-dev.sh && ./deploy-dev.sh

Then visit localhost:30001 in your browser.

$ curl http://localhost:30001/order
> Order received: 274822750

Gosec

Reveal security-related issues in the codebase.

gosec ./...

GolangCI-Lint

Lint the codebase.

golangci-lint run