Skip to content
Rafał Lorenz edited this page Mar 8, 2018 · 20 revisions

Prerequisites

In order to run this project you need to have Docker > 1.17.05 installed for building the production image.

Instalation

git clone [email protected]:vardius/go-api-boilerplate.git

Configuration

Create your local .env file from dist.env files.

For each of binaries when building a docker image the environment variable file will be passed (Located in the binary directory). This repository contains example .env file for server binary. There is also .env file containing local configurations and is to be git ignored where dist.env contains versioned example of project configuration.

Remember to set PKG variable pointing to your repository, also change all imports from github.com/vardius/go-api-boilerplate/* to your-repository/*

Repository structure

Repository holds two top-level directories, pkg and cmd.

pkg contains directories for each of bounded context.

cmd contains directories for each of binaries.

Clone this wiki locally