Skip to content

nidhindamodaran/url-shortner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url-shortner

Url shortner service app in ruby with sinatra

Installation

Ruby Version

  • Ruby 2.5.0

Clone Fluxday

git clone https://github.com/nidhinnambiar/url-shortner.git  

Install bundler and required gems

Once the specified version of Ruby is installed with all its dependencies satisfied, run the following command from the root directory of the application.

gem install bundler
bundle install

Configure database

cp config/database.yml.example config/database.yml

Update the credentials in database.yml with actual values.

Now you can create the database and perform migrations

rake db:create
rake db:migrate

Run the app with

rackup

or

thin start

API details

Open Api end-point added for viewing url hits count and original url

<host>/api/:code

About

Url shortner service app in ruby with sinatra

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published