Skip to content

rgarimella0124/Url-Shortner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener

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.

How URL Shortner works?

URL shortener works in two ways:

  • Generate a short URL based on the given URL.
  • Redirect short URL to original URL.

Objective

  • 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.

Application Architecture

Architecture

Stack

  • 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.

Demo

Demo

About

Building a URL Shortener with Node.Js and Redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors