/url-shortener

URL shortener API built using node.js

Primary LanguageJavaScriptMIT LicenseMIT

Welcome to URL-SHORTENER

Follow this link to checkout this URL shortener API built using node.js and expressjs. https://safe-crag-80479.herokuapp.com/
(The link to this deployment is old)

Installation

Prerequisites

  1. node
  2. Download mongoDB community server - https://www.mongodb.com/download-center?jmp=nav#community]

Local Setup

  1. From project root run npm install.
  2. Start mongoDB.
  3. Run npm start from project root.
  4. If everything goes well, you should see Server started on localhost:3000 on the console.
  5. Visit localhost:3000.
  6. You can use a GUI based environment for managing your database eg: Robomongo

Example usage

  • Create a new short url by using /new route.

  • /new/urltoshorten

  • eg: localhost:3000/new/https://google.co.in

Want to contribute?

Read contribution guidelines for this project here

Made by zamhaq