Skip to content

Go (golang) REST API starter kit utilizing best available packages and tools

Notifications You must be signed in to change notification settings

vanetraj/go-api-quickstart

Repository files navigation

Go RESTful Application Starter Kit

This starter kit is meant to get you up and running with a Go project for developing RESTful services in Go.

The following Go packages have been used:

  • Echo - High performance, minimalist Go web framework
  • Dep - Go dependency management tool
  • Realize - Golang Task Runner which enhance your workflow by automating the most common tasks and using the best performing Golang live reloading.

Getting started

These instructions will get you a copy of the project up and running on your local machine for development, testing and building docker image.

Requirements

Commands

Start live-reload dev environment

$ make dev.up
#$ docker-compose up api

Add new dependency (package)

$ make dev.add.pkg {{package_url}}
#$ docker-compose run --rm api dep ensure -add {{package_url}}

Build docker image

$ make build

Run docker image

$ make run