UrlShortner is an rails application which gives shortened URL from the original URL.
UrlShorner has web front end and api service.
Authentication for web front end is through devise and for api service it is through JSON web token
git clone https://github.com/ethirajsrinivasan/UrlShortner.gito
cd UrlShortner
bundle install
rake db:setup
rake db:migrate
rails server
UrlShortner is up and running
To get authentication token
http://localhost:3000/authenticate?email=xxxxxxxx@gmail.com&password=xxxxxxx
To get short url
http://localhost:3000/url_shortners/fetch_short_url?url=yahoo.com
To get statistics about short url
http://localhost:3000/url_shortners/:short_url/stats
Note: Include auth token in the header as below
Authorization: 'auth_token'