A simple URL shortener that makes a long URL "bit sized". Written in Vanilla HTML/CSS, JS and Node.Js.
Warning
Currently in Dev.
-
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.
- Node.Js
- FrontEnd
5500
- BackEnd
3000
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)
-
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.