Skip to content
This repository

A tinyURL service powered by node.js, express.js and a reddis database.

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 node_modules
Octocat-spinner-32 public
Octocat-spinner-32 routes
Octocat-spinner-32 views
Octocat-spinner-32 app.js
Octocat-spinner-32 dump.rdb
Octocat-spinner-32 package.json

NodeJS TinyURL Service

Powered by Node.js, Express.js, and Reddis


  • $ git clone git://
  • $ cd nodejs-tinyURL
  • Make sure you have Node.js, and Redis installed.
  • Run the $ redis-server command in a terminal window
  • Finally, run the application via $ node app.js in another terminal window
  • Visit to view the running application


  • /tiny/[] — Returns json for a tinyed ID.
  • /x/[id] — Redirects to tinyed website.
  • /stats/[id] — Returns json of visits and the full URL.


  • $ curl


  • $ curl


Note: Inorder to use URL's with slashes use encodeURIComponent(url) and do not submit URL's with http:// or https://


Something went wrong with that request. Please try again.