Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

fun project: url shortener using node and nosql

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app_modules
Octocat-spinner-32 public
Octocat-spinner-32 routes
Octocat-spinner-32 test
Octocat-spinner-32 views
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .nodester.appconfig
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.markdown
Octocat-spinner-32 app.js
Octocat-spinner-32 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.