home

command module
v0.0.0-...-e4becfe Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2016 License: MIT Imports: 3 Imported by: 0

README

Home

API for home management stuff.

Running Locally

Setup the local PG database:

make docker
make seed

Run with gin auto-reload:

make run
curl localhost:3000/health
Get a PSQL session

make psql

Make sure Heroku is installed

Make sure you have Go and the Heroku Toolbelt installed.

$ go get -u github.com/heroku/go-getting-started
$ cd $GOPATH/src/github.com/heroku/go-getting-started
$ heroku local

Your app should now be running on localhost:5000.

You should also install Godep if you are going to add any dependencies to the sample app.

Deploying to Heroku

$ heroku create
$ git push heroku master
$ heroku open

or

Deploy

Refreshing Heroku DB for development

make clean-heroku

Documentation

For more information about using Go on Heroku, see these Dev Center articles:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/hashicorp/logutils
Package logutils augments the standard log package with levels.
Package logutils augments the standard log package with levels.
_workspace/src/github.com/jinzhu/inflection
Package inflection pluralizes and singularizes English nouns.
Package inflection pluralizes and singularizes English nouns.
_workspace/src/github.com/joho/godotenv
Package godotenv is a go port of the ruby dotenv library (https://github.com/bkeepers/dotenv) Examples/readme can be found on the github page at https://github.com/joho/godotenv The TL;DR is that you make a .env file that looks something like SOME_ENV_VAR=somevalue and then in your go code you can call godotenv.Load() and all the env vars declared in .env will be avaiable through os.Getenv("SOME_ENV_VAR")
Package godotenv is a go port of the ruby dotenv library (https://github.com/bkeepers/dotenv) Examples/readme can be found on the github page at https://github.com/joho/godotenv The TL;DR is that you make a .env file that looks something like SOME_ENV_VAR=somevalue and then in your go code you can call godotenv.Load() and all the env vars declared in .env will be avaiable through os.Getenv("SOME_ENV_VAR")
_workspace/src/github.com/kelseyhightower/envconfig
Package envconfig implements decoding of environment variables based on a user defined specification.
Package envconfig implements decoding of environment variables based on a user defined specification.
_workspace/src/github.com/lib/pq
Package pq is a pure Go Postgres driver for the database/sql package.
Package pq is a pure Go Postgres driver for the database/sql package.
_workspace/src/github.com/lib/pq/oid
Package oid contains OID constants as defined by the Postgres server.
Package oid contains OID constants as defined by the Postgres server.
_workspace/src/github.com/mattn/go-sqlite3
Package sqlite3 provides interface to SQLite3 databases.
Package sqlite3 provides interface to SQLite3 databases.
db

Jump to

Keyboard shortcuts

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