appyhour770 / url-shortener

Another url shortener wrote on Java with Play! Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

url-shortener is a simple url shortener. Crazy no ?

See an example here : http://jvf.li

Installation
- Install Play! Framework 1.1 or 1.2 http://www.playframework.com
- Install Redis 2.x.x
- clone this repository
- configure the app in conf/application.conf to setup your redis server.
- run "play start" on root directory and that's all :)


API :
Just call HTTP GET method on http://jvf.li/api/shorten?longurl={your_url_encode_url}
Note : Your url must be url encoded.
This url shortener support Cross Origin Resources Sharing (CORS), so you can use it in you own website with ajax call.
But be carefull, some browser, like IE doesnt support CORS.

About

Another url shortener wrote on Java with Play! Framework