A URL shortener is a pretty popular application on the Web. URL shortener saves spaces so that one can send it in emails, tweet it on Twitter while still redirecting to the original URL.
URL shortener works in two ways:
- Generate a short URL based on the given URL.
- Redirect short URL to original URL.
- To short URL,
- Generate A Random Hash and assign it to the original URL and store it in database.
- On Request to the short URL, the system needs to look up in the database and if found, return the original URL for redirection.
- body.parser- Parse incoming request bodies.
- cors- Node.js CORS middleware.
- express- Fast, unopinionated, minimalist web framework for node.
- nodemon- Simple monitor script for use during development of a node.js app.
- redis- Complete and feature rich Redis client for node.js.
- shortid- Amazingly short non-sequential url-friendly unique id generator..
- valid-url- To Check the Url is Valid or not.

