Skip to content

waleedjaffar/url_shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener

URL Shortener is a Rails application that can be used to create and interpret shortened URLs on your own domain

Dependencies

  • RVM

  • Gemsets

  • Ruby 2.5.1

  • Rails 4.2.10

  • PostgreSQL 9.5

Installation

Clone the repository:

git clone https://github.com/waleedjaffar/url_shortener.git

then cd into application root and execute

bundle install rake db:migrate

Testing

After installing the application and running the migrations, execute the following rake task in order to set up test database

RAILS_ENV=test rake db:create rake test

Deployment

This application is configured to auto deploy to Heroku. Application can be accessed at hidden-meadow-3938.herokuapp.com

Design Decisions

  • URL Shortener app does not require authentication.

  • In order to make sure the generated short URL is unique, application uses PROCESS::CLOCK_REALTIME. However, app validates whether short url already exists and if it does then a new URL is generated.

Future Improvements

  • Search filters, pagination and sorting in index page for all shortened URLs

  • Better UX

  • Advance stats like browser, platform, geolocation of visitng users

  • Display title and screenshot from the linked site

About

URL shortener app using ROR

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published