A url shortener Go app, which can easily be deployed to Heroku/Dokku/Flynn.
Powers https://tinyalias.com
This installation guide assume you have already have installed postgres and heroku-cli
-
Populate these 2 sql scripts: init.sql and schema.sql
-
Create .env file in code dir with these values:
DATABASE_URL
: postgres db uriAPP_NAME
: app name e.g.test-tinyalias
BASE_URL
: for local run uselocalhost:5000/
GOOGLE_API_KEY
: used for Google safebrowsing APISESSION_AUTHENTICATION_KEY
: used to auth cookie fieldSESSION_ENCRYPTION_KEY
: used to encrypt cookie field
go install ./cmd/... && heroku local