This is a test application for shortening url's without using any gems in Ruby On Rails.
Also have complete test coverage as well using rspec.
Also you can find the number of clicks on this shortened url with this application dashboard.
Service is hosted at https://yoururl.herokuapp.com/
Also we have exposed an api for testing the functionality
Api For shortening url
BASE_URL: https://yoururl.herokuapp.com/
REQUEST TYPE : POST
REQUEST FORMAT : 'JSON(application/json)'
REQUEST URL : BASE_URL/links.json
Request body :
{ "link" : { "outgoing_url" : "https://github.com" } }
Request Response:
{ "original_url": "https://github.com", "shortened_url": "shorteningurl.herokuapp.com/a53eb18aa5" }