Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 861 Bytes

README.md

File metadata and controls

26 lines (15 loc) · 861 Bytes

TinyAlias

A url shortener Go app, which can easily be deployed to Heroku/Dokku/Flynn.

Powers https://tinyalias.com

Installation

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 uri
    • APP_NAME : app name e.g. test-tinyalias
    • BASE_URL : for local run use localhost:5000/
    • GOOGLE_API_KEY : used for Google safebrowsing API
    • SESSION_AUTHENTICATION_KEY : used to auth cookie field
    • SESSION_ENCRYPTION_KEY : used to encrypt cookie field

Local Run

  • go install ./cmd/... && heroku local