Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Another url shortener wrote on Java with Play! Framework
Java
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.

Something went wrong with that request. Please try again.