Skip to content

Arm1stice/link-shortener

Repository files navigation

Link Shortener

A link shortener built by Wyatt Calandro

Requirements

The link shortener requires two databases:

  • MySQL (to store link information)
  • Redis (for user sessions)

Environment Variables

The link shortener requires certain environment variables to be set in order to function:

Environment Variable Description Required
MYSQL_URI URI for MySQL eg username:password@tcp(127.0.0.1:3306)/dbname Yes
REDIS_HOST Host for Redis server eg 127.0.0.1:6379 Yes
REDIS_PASSWORD Password for Redis server Yes
WEBSITE_URL Domain for website where you create URLs eg "links.wcalandro.com" Yes
SHORT_URL Domain for short URLs eg "wcal.xyz" Yes
SESSION_SECRET Secret used to encrypt sessions Yes

Running the application

This website was built to run on Heroku or Dokku and includes a Dockerfile that will be detected and built automatically

About

Link shortening website created with Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published