gcp-pricing-info

module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: Apache-2.0

README

Go Report Card license

GCP Pricing Info

API to get pricing information about Google Cloud Platform resources as a calculator.

Build locally

To build the project just use Go standard compiler with the following commands:

go mod tidy
go mod download
go mod verify
go build -o bin\gcp-pricing-info[.exe] cmd\server\main.go

And then run the server with the command:

.\bin\gcp-pricing-info[.exe]

Now you can test the API in your host calling the Health Check endpoint http://localhost:8080/healthcheck

Build Docker container

To build the Docker container you need to run the following Docker command:

docker build -t gcp-pricing-info .

And then run the container and forward the port with the command:

docker run -p 8080:8080 gcp-pricing-info

Now you can test the API in your host calling the Health Check endpoint http://localhost:8080/healthcheck

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

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