This is URL shortener microservice using Node.js, Express.js for the backend, and MongoDB to store the URLs. This project is a URL Shortener Microservice built as part of freeCodeCamp's Backend Development and APIs curriculum. It provides functionality to shorten URLs and redirect users to the original URLs using the shortened links.
Features
- Shorten URLs: Submit a valid URL to receive a shortened version.
- Redirection: Accessing the shortened URL redirects to the original URL.
- Input Validation: Ensures only properly formatted URLs are processed.
How It Works
- Send a POST request with a valid URL.
- Receive a shortened URL in the response.
- Access the shortened URL to be redirected to the original link.
Tech Stack
- Node.js and Express.js for the server and routing.
- Optional: MongoDB for persistent storage of URL mappings.