A basic backend for the signup form of my newsletter "Passages & Glass".
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
layouts
public
scripts
vendor
views
.env.sample
.gitignore
.travis.yml
Gopkg.lock
Gopkg.toml
Procfile
README.md
main.go
main_test.go

README.md

passages-signup Build Status

A basic backend for the signup form of my newsletter Passages & Glass. The rest of its site is statically hosted, so this program is designed to hold an API key and talk to the Mailgun API.

Setup

Clone, configure, install, and run:

go get -u github.com/brandur/passages-signup

cd $GOPATH/src/github.com/brandur/passages-signup

cp .env.sample .env

# open .env; edit CSRF_SECRET and MAILGUN_API_KEY

go install && forego start -p 5001 web

Open your browser to localhost:5001.

Vendoring Dependencies

Dependencies are managed with dep. New ones can be vendored using these commands:

dep ensure -add github.com/foo/bar

Operations

Hosted on Heroku at passages-signup.