Giter Club home page Giter Club logo

shawty-server's Introduction

Shawty

The Shawty gem is the simplest and fastest Ruby url-shortening app. Run your own server that works like tinyurl.com or is.gd.

Instant installation and deploy

  • Clone this: git clone git://github.com/JackDanger/shawty-server.git
  • Signup for an account at Heroku (better details here)
  • don't even bother configuring it
  • push it to Heroku.com: git push heroku master
  • Revel.

Why?

If you run any application with published content it's helpful to have shorter links to that content.

Consider that your Rails app might offer pages like the following:

http://myapp.com/accounts/megacorp/invoices?single_access_token=5ASD32ADf89JKASF2346

Imagine trying to fit that in a text message. Instead, how about:

http://url.myapp.com/a7D

Is it so easy a child can use it?

Yes. See the shawty-client gem for details:

Shawty.new(
    "http://url.myapp.com/"
  ).shrink(
    "http://myapp.com/accounts/megacorp/invoices?single_access_token=5ASD32ADf89JKASF2346"
  )
# => http://url.myapp.com/a7D
## Saved on your url.myapp.com shawty server and usable immediately

Way groovy.

Patches welcome, forks celebrated.

Copyright (c) 2009 Jack Danger Canty. See LICENSE for details.

shawty-server's People

Contributors

jackdanger avatar bmizerany avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.