A scalable and production-ready URL shortening service built using Flask, MongoDB, and Render, featuring:
- ✅ Custom short URLs
- 📈 Click tracking analytics
- ⏳ Expiry-based link handling
- 📊 Dashboard for real-time monitoring
- Shorten long URLs into compact short codes
- Track click counts on shortened links
- Set expiration dates for links
- RESTful API design for integration
- Dashboard for monitoring usage & expiry status
- Deployed with HTTPS on Render
- Backend: Flask (Python)
- Database: MongoDB (via MongoDB Atlas)
- Frontend: HTML/CSS/JS for Dashboard
- Deployment: Render (Free Tier)
| Method | Endpoint | Description |
|---|---|---|
POST |
/shorten |
Shorten a long URL |
GET |
/<short_code> |
Redirect to original URL |
GET |
/dashboard/data |
Get all URLs with analytics |
GET |
/dashboard/ |
Get the dashboard UI |
Shows all shortened URLs with their clicks, creation date, expiry status.
git clone https://github.com/E22CSEU0037/URL-SHORTENER.git
cd url-shortener
pip install -r requirements.txt
Create a .env file (or set environment variable) for MongoDB:
MONGO_URI = your_mongodb_atlas_uri
python main.py
Live at: https://url-shortener-r7mj.onrender.com
GEETIKA SINGH 4th Year BTech CSE | Bennett University
This project is licensed under the MIT License.
