Skip to content

hhertout/go_std_boilerplate

Repository files navigation

Go API Boilerplate - Std lib

Getting Started

Docker

Build the image

docker build -t go-api-boilerplate .

Run the container

docker run -p 8080:8080 go-api-boilerplate

Run the container with environment variables

docker run -p 8080:8080 -e PORT=8080 go-api-boilerplate

MakeFile

run all make commands with clean tests

make all build

build the application

make build

run the application

make run

Create DB container

make docker-run

Shutdown DB container

make docker-down

live reload the application

make watch

run the test suite

make test

clean up binary from the last build

make clean

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published