Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu
 
 

Repository files navigation

Shortbread

A delicious URL shortener. See it live at http://shrtb.red.

Setup

Shortbread is made with Ruby on Rails.

Install rails:

sudo gem install rails

Set up your gems:

bundle install

Set up the database:

rake db:migrate

This app uses Postgres for the database.

You'll need a domain to point shortened links to. In link.rb, replace URL_BASE = "shrtb.red/" with whatever domain you want to serve shortened URLs from.

Shortened URLs are case-sensitive, so bear that in mind.

The site tracks the top 100 most visited links. You can adjust this in the constant MOST_VISITED_LIMIT in link.rb.

Test Suite

This app uses Rspec. To run tests on the Link model, simply type:

rspec

About

A delicious URL shortener

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.