No description
Find a file
2014-07-26 09:33:31 -04:00
lib adding support for file uploading to s3 2010-10-27 20:05:12 -07:00
public/css restyling in progress 2011-11-19 22:54:02 -08:00
views adding (image) indicator 2011-11-20 21:33:07 -08:00
.gitignore ignoring tmp folder. 2011-10-05 20:30:24 -07:00
config.ru more gem updates 2014-07-26 09:26:12 -04:00
Gemfile gemfile updates 2014-07-26 09:33:31 -04:00
Gemfile.lock gemfile updates 2014-07-26 09:33:31 -04:00
main.rb adding bandaid to view recent links 2011-11-20 21:29:41 -08:00
README.markdown added note about file uploading with warning that it is buggy 2010-10-28 09:40:12 -07:00

Shorten

Shorten is an extremely simple Sinatra based URL shortener. There is almost no UI and only the most basic of functionality.

You can see an example of this service running at ➼.ws.

File uploading with an Amazon S3 backend has been recently uploaded and works but is known to be very buggy. YMMV.

Installation

Clone

$ git clone git://github.com/amdavidson/shorten.git

Install required gems

$ gem install rack sinatra sequel anybase pg

Optional: Install the Heroku gem if you want to deploy on Heroku.

$ gem install heroku

Deploy

In the application directory run the following commands

$ heroku create

Configure the application per below.

$ git push heroku master

Configure

Open main.rb in your favorite editor and change this block: Shorten = OpenStruct.new( :base_url => "http://xn--8gi.ws/", :service_name => "➼.ws", :button_text => "➼", :path_size => 4 )

Enjoy

You now have your own running URL shortener. Now use domai.nr or name.com to find yourself an available, short URL and reconfigure main.rb

History

This is a fork of the original Shorten application created by Andrew Pilsch. I made some updates to randomize the shortened URL in the style of bit.ly and tr.im. I have also modified the software to be easy to deploy to Heroku.