Another url shortener wrote on Java with Play! Framework
Java
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
conf
lib
public
test
.gitignore
README

README

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.