A simple and secure URL shortener web application built using Node.js, Express, MongoDB, and EJS. It allows users to shorten long URLs, view analytics (click counts), and manage their shortened links via a user-friendly interface.
- 🔐 User authentication (Signup/Login)
- 🔗 Shorten any long URL to a compact one
- 📊 Analytics for each short link (click count)
- 🧑 Dashboard to view and manage all your URLs
- 💡 Built with security and clean design in mind
- Backend: Node.js, Express
- Frontend: EJS, HTML, CSS
- Database: MongoDB
- Authentication: Cookies + Custom JWT logic
- Dev Tools: Nodemon, dotenv
git clone https://github.com/PriyanshLathigara/URL-Shortener.git
cd URL-Shortenernpm install- Create a .env file in the root folder:
PORT=8001
MONGO_URL=your_mongo_connection_string
secret=your_secret_key⚠️ Do not share your .env file publicly. For team projects, create a .env.example.
npm run dev- Now open your browser at: http://localhost:8001
- ✅ All set! Your app is up and running locally.
- And All set, Done & Dusted.