Skip to content

jasontthai/tinyalias

Repository files navigation

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

About

URL Shortener in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published