Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
fun project: url shortener using node and nosql
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app_modules
public/stylesheets
routes
test
views
.gitignore
.nodester.appconfig
.travis.yml
Makefile
README.markdown
app.js
package.json

README.markdown

Build Status

Fun project to get used with node and to test travis ci

JSON Api

curl -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{"url": "http://kowalski.gd"}' http://localhost:3000/api/
# {"url":"http://kowalski.gd","shorturl":"7","date":"2012-06-09T21:34:14.103Z"}


curl -i -H "Content-Type: application/json" -H "Accept: application/json" -X GET http://localhost:3000/api/MYSHORTURL
# {"url":"http://kowalski.gd","shorturl":"7","date":"2012-06-09T21:34:14.103Z"}


curl -i -H "Content-Type: application/json" -H "Accept: application/json" -X GET http://localhost:3000/api/random
# {"url":"http://google.de","shorturl":"7","date":"2012-06-09T21:34:14.103Z"}
Something went wrong with that request. Please try again.