The tool is developed by @manishcencha to generate short URLs for input URLs.
See demo at: https://m-urlshortener.herokuapp.com.
Usage instructions:
- 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.
You should have installed:
- nodejs
- npm
- mongodb
If you have installed the prerequisites, follow these steps:
- Clone the repository
git clone https://github.com/xyberty/urls.git
- Navigate to the directory
cd urls
- Run the command
npm install
ornpm i
to install the dependencies - Inside the
urls
directory create a.env
file and put your mongodb URL into itDB_URL="URL"
- Now everything is ready. Run the command
npm run runDev
to start the server. - Now open your browser and go to the URL
https://localhost:3000
- You are good to go.