heroku-starter-golang

command module
v0.0.0-...-6fa2d18 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: MIT Imports: 6 Imported by: 0

README

heroku-starter-golang (WORK IN PROGRESS)

A dockerized starter project which deploys an golang CRUD app to heroku.

Deployed here on heroku https://heroku-starter-golang.herokuapp.com

Installation

Make sure Docker, make, nodejs (development only) and golang are installed

  1. Run docker-compose up to start the postgres DB
  2. Run make local-setup to install nodemon and setup environment
  3. Run make start to run the migrations

Environment variables

Name Description
ENV development/production
DB_USERNAME Username of the postgres DB
DB_PASSWORD Password of the postgres DB
DB_NAME Name of the postgres DB
DB_HOST Host of the postgres DB

CI Secrets

Name Description
HEROKU_API_KEY Heroku API key
HEROKU_APP_NAME Heroku app name
HEROKU_EMAIL Your email address on Heroku

Migrations

This repo uses GORM for auto migration generation. The process is non-destructive.

Running

Run make start to start in development mode.

Import the ./postman/* into Postman to see the API docs

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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