The tool is developed to generate short URLs for input URLs.
See demo at : https://url-shortener-8mzl.onrender.com
##Usage
- Visit the link
https://url-shortener-8mzl.onrender.com/
- In the text field enter the URL to which you want to short
- Click on
Short
- The short URL will be in the last of the below list.
- nodejs
- npm
- mongodb
If you have installed the prerequisites, Follow the next steps
- Clone the repository
git clone https://github.com/manishsencha/url-shortener.git
- Navigate to the directory
cd URL-Shortener
- Run the command
npm install
ornpm i
to install the dependencies - Inside the
URL-Shortener
create a.env
file and put your mongodb URL in itDB_URL="URL"
- Now everything is ready, In the terminal run the command
npm run runDev
to start the server. - Now open your browser and open the URL
http://localhost:3000
- You are good to go.