A backend for the signup forms of my newsletters Nanoglyph and Passages & Glass. Tracks email address through the process of confirming them, then adds them to a list through Mailgun's API.
Install Go, Direnv, and Postgres.
Clone, configure, install, and run:
go get -u github.com/brandur/passages-signup
cd $GOPATH/src/github.com/brandur/passages-signup
cp .envrc.sample .envrc
createdb passages-signup
psql passages-signup < sql/schema.sql
# open `.envrc`; edit MAILGUN_API_KEY
go install && $(go env GOPATH)/bin/passages-signup
Open your browser to localhost:5001.
createdb passages-signup-test
psql passages-signup-test < sql/schema.sql
The primary host is Google Cloud Platform, and the GitHub Actions build automatically deploys master
to these apps:
- Cloud Run service
nanoglyph-signup
(projectpassages-signup
). - Cloud Run service
passages-signup
(projectpassages-signup
).
It's also cross-deployed to Heroku for now, but these versions of the app may not be as up-to-date:
- Heroku app
nanoglyph-signup
. - Heroku app
passages-signup
.
See more instructions in the deploy/
directory.