This project is based on Node, Express, and MongoDB. This is like the Bitly web app to generates a short URL. '#Bitly Clone, #URL-Shortner'
Firstly you have to run the following command :
yarnnpm installThese two commands will install all the dependencies which will help to run the Project.
And now, you have to run the project by running the command:
yarn startnpm start
Base URL- http://localhost:8000
- http://localhost:8000/api/url/
pass your original URL(through body)to this URL and you will get a short ID and the short id will passed as params of the below URL(API). - http://localhost:8000/api/url/:shortId
Now this URL will be treated as your short URL like
Bitlydoes.