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.
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.
Dependencies are managed with dep. New ones can be vendored using these commands:
dep ensure -add github.com/foo/bar
Hosted on Heroku at