This is a url shortner service which intakes a url of a website and returns a shortened URL. If a user visits the short URL, the service redirects the user to the originally provided URL.
The service also records the site visits done by a user.
- MongoDB to store the urls and analytics
- Express for develop Routes
-
/url Method: POST Description: Generates a new short URL and returns the shortend URL
-
/:shortId Method: GET Description: Redirects the user to the original url
-
/analytics/:shortId Method: GET Description: Fetches the traffic data on a particular website