URL-Shortener

The tool is developed to generate short URLs for input URLs.
See demo at : https://url-shortener-8mzl.onrender.com
##Usage

Usage instructions

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

Installation Instructions

Prerequisites

You should have installed
  • nodejs
  • npm
  • mongodb

If you have installed the prerequisites, Follow the next steps

  • Clone the repositorygit clone https://github.com/manishsencha/url-shortener.git
  • Navigate to the directory cd URL-Shortener
  • Run the command npm install or npm i to install the dependencies
  • Inside the URL-Shortener create a .env file and put your mongodb URL in it DB_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.