A full-stack URL shortener built with Node.js, Express.js, and MongoDB.
Users can shorten long URLs by entering a custom or random short code. The shortened links are stored in a MongoDB collection and displayed on the home page using EJS templates.
- Built with Express.js using clean routes/controllers
- View engine: EJS
- Stores links in MongoDB
- User inputs:
- Long URL
- Custom short code (e.g.,
yt→https://youtube.com)
- Homepage shows all shortened links
- Clicking a short link redirects to the original
- Custom 404 page for invalid short codes
git clone https://github.com/DeveloperZeeshu/URL-Shortener.git
cd url-shortener-nodeMade with ❤️ by Jeesan Abbas