A lightweight and efficient URL shortening service built with Node.js, Express, MongoDB, and NanoID.
It allows users to generate short URLs for long links, redirect dynamically, and track visit history.
- Generate unique short URLs for any long URL.
- Dynamic redirect to the original URL when visiting the short link.
- Track visits with timestamps.
- Simple REST API architecture.
- Easy to extend with custom aliases, analytics dashboard, or QR code generation.
- Backend: Node.js, Express.js
- Database: MongoDB (Mongoose)
- Unique ID Generation: NanoID
- Other: dotenv for environment variables, cors for cross-origin requests
- Clone the repository
git clone https://github.com/yourusername/url-shortener.git
cd url-shortener