Skip to content

a simple golang boilerplate to kickstart any go api project

Notifications You must be signed in to change notification settings

joshsoftware/golang-boilerplate

Repository files navigation

Golang Boilerplate

Golang boilerplate to kickstart any go api project. This supports 2 database configurations currently:

  • MongoDB
  • Postgres (default)

Installing and configuring the boilerplate!

Get the install.sh script into your microservice development directory.

wget https://raw.githubusercontent.com/joshsoftware/golang-boilerplate/master/install.sh

Run the script with the options:

. ./install.sh -p package_name [-d {mongo|pg}] [-h]

-p: [mandatory] Usually your github handle and service name. Eg. gautamrege/testly or github.com/corp/pkg/service

-d: [optional] Default: pg. Specify 'mongo' for mongoDB setup

-h: [optional] Display help

Testing

Run test locally

$ make test

Generate coverage report

$ make test-coverage

About

a simple golang boilerplate to kickstart any go api project

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published