Short your long URLs and make them handy to share.
Make sure you've downloaded Node JS
and NPM
.
Clone the project
git clone https://github.com/Ajeet1606/url-shortner-backend.git
Go to the project directory
cd url-shortner-backend
Install dependencies
npm i
Start the server
npm start
NodeJS, ExpressJS, MongoDB
- Go to /shortUrl endpoint and make a post request with your source URL
- It'll give you the shorted URL
- Go to /analytics/:id endpoint and make a get request, it will give you the number of visits on your shorted URL and the timeline of visits as well.
If you liked it, drop a 💫, it'll encourage me to build me. If you want anything to add, please raise an issue/PR.