Skip to content

gauravmk/oakshortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oakshortener

A super basic URL shortener. Lives at oakca.us.

oakca.us/a takes you back here.

Features

All short links are stored in redis since it's just a series of key values. This is as barebones as it gets. There are two routes:

  • GET /:slug looks up the slug in redis and redirects to the value it finds
  • POST /create creates (or overrides) an existing link. It's protected by simple Basic Auth with the password in an env var.

Lastly we do capture some analytics. We simply log every pageview to google analytics using their server side API.


Made with ❤️ in beautiful. downtown. oakland. california.

About

A super basic URL shortener

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published