||4 years ago|
|.gitignore||4 years ago|
|Gopkg.lock||4 years ago|
|Gopkg.toml||4 years ago|
|README.md||4 years ago|
|config.sample.json||4 years ago|
|main.go||4 years ago|
A simple, ugly, Go/Redis-backed URL shortener.
Kogara (小柄) is the result of extensive Google Translating variations of the word "short" into different languages, because that's how I like to name my projects. Plus, Kogara sounds pretty damn cool.
This is a hobby project designed to increase my own familiarity with Go, Redis, and Gin. I'm striving to have it become a stable, full-fledged project, but keep that in mind if you decide to use it.
/ is a simple homepage to shorten links.
/+/:id displays a simple counter of the times the link has loaded from the server. (It uses a 301 redirect, so browsers will typically aggressively cache the result)
/r/:id is the redirect itself.
/check/:id will return a JSON blob revealing the existence of a particular ID. Mainly implemented so if I decide to add custom URLs.
- At present solely generates sequential base62 link IDs.
- At present has no way to administer links beyond directly managing them in Redis.