adding README.markdown
This commit is contained in:
parent
f991d60cc8
commit
4aab9c3f7c
1 changed files with 54 additions and 0 deletions
54
README.markdown
Normal file
54
README.markdown
Normal file
|
@ -0,0 +1,54 @@
|
|||
# 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][example].
|
||||
|
||||
## Installation
|
||||
|
||||
### Clone
|
||||
|
||||
$ git clone git://github.com/amdavidson/shorten.git
|
||||
|
||||
### Install required gems
|
||||
|
||||
$ gem install rack sinatra sequel anybase pg
|
||||
|
||||
Optional: Install the [Heroku][heroku] gem if you want to deploy on Heroku.
|
||||
|
||||
$ gem install heroku
|
||||
|
||||
### 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
|
||||
)
|
||||
|
||||
### Deploy
|
||||
|
||||
In the application directory
|
||||
|
||||
$ herok
|
||||
|
||||
## History
|
||||
|
||||
This is a fork of the original [Shorten][orig_url] application created by [Andrew Pilsch][author].
|
||||
I made some updates to randomize the shortened URL in the style of [bit.ly][bitly] and
|
||||
[tr.im][trim]. I have also modified the software to be easy to deploy to Heroku.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[orig_url]: http://blog.pilsch.com/past/2009/6/7/shorten_your_own_damn_urls/
|
||||
[author]: http://andrew.pilsch.com/
|
||||
[example]: http://xn--8gi.ws
|
||||
[bitly]: http://bit.ly
|
||||
[trim]: http://tr.im
|
||||
[heroku]: http://heroku.com
|
Loading…
Reference in a new issue