Skip to content

The application should be able to put a URL into the home page and get back a url of the shortest possible length.

Notifications You must be signed in to change notification settings

sumitdey035/url_shortner

Repository files navigation

URL Shortner

The application should be able to put a URL into the home page and get back a urlof the shortest possiblelength. I have used here base 36 numbering system. so This means 1 million records in the database would only require 4 characters (1,000,000 base 10 is ‘lfls’ base 36). And the 200 million records will use only 6 characters .

  • Ruby and Rails version

    • Ruby version: 2.2.3
    • Rails version: 4.2.7
  • Setting up development

    • Clone the project from github
      git clone https://github.com/sumitdey035/url_shortner.git
      
    • Go to the project folder
      cd url_shortner
      
    • Run bundler
      bundle install
      
    • Setup database
      rake db:setup
      
  • Running development env:

    • Start rails server
      rails s
      
  • Run specs

    rake db:setup RAILS_ENV=test
    bin/rspec spec
    

About

The application should be able to put a URL into the home page and get back a url of the shortest possible length.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published