Skip to content

A simple URL shortener that makes a long URL "bit sized". Written in Vanilla HTML/CSS, JS and Node.Js.

License

Notifications You must be signed in to change notification settings

ucx15/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener

A simple URL shortener that makes a long URL "bit sized". Written in Vanilla HTML/CSS, JS and Node.Js.

Warning

Currently in Dev.

Description

  • The code (shortened URL) is a 6 characters long "Alpha-Numeric" String made using SHA256 Digest of long URL and randomly selected characters from the digest.

  • The shortened URL is stored in a dictionary with the code as the key and the long URL as the value.

  • The shortened URL is then returned to the user.

  • When the user enters the shortened URL, the code is extracted from the URL and the long URL is fetched from the dictionary and user is then redirected to the long URL.

Requirements

  • Node.Js

Quick Start

Ports

  • FrontEnd 5500
  • BackEnd 3000

Steps

Run the following commands

# FrontEnd
cd ./FrontEnd
npm install
npm run dev
# BackEnd
cd ./BackEnd
npm install
npm run dev

The frontend should be running on http://localhost:3000.

The backend should be running on http://localhost:5000. (Not to be accessed via browser)

TODOs

  • Add animations to the frontend.

  • Add not found page (Frontend).

  • Add a "Copy to Clipboard" button.

  • Host it. Maybe, Maybe, Maybe...! 🤷🏻‍♂️

  • Design the Front End.

  • Add a Database to store the shortened URLs.

Author

ucx15 on GitHub

Mail Me

About

A simple URL shortener that makes a long URL "bit sized". Written in Vanilla HTML/CSS, JS and Node.Js.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published