Shorti is an API first (and only) URL shortener and click counter.
It is comprised of three end points.HTTP Method End Point Function POST / Create a new shortened URL GET /:id Redirect to full URL and track the click GET /info/:id What URL is shortend and the number of clicks
The create end point will always require an API_KEY. The info end point can optionally require the API_KEY.
bundle exec rails spec should do the trick.
I have a version up on Heroku you can try (URL won't be that short).
curl -d "url=https://scottw.com&api_key=HOAGIES" https://shortilinks.herokuapp.com
Please note, this data will likely be cleared out every once in a while.
One outstanding item would be to track unique clicks (likely via IP Address). Not 100% yet if this will be added.