Linkify is a full-stack URL shortening app built with Node.js, Express, MongoDB, and EJS. It converts long URLs into short, shareable links with authentication and basic click analytics.
Live Demo: Your Deployed Link Here
- 🔐 User Authentication (JWT)
- 🎯 URL Shortening
- 📊 Click Analytics
- 👤 User Dashboard
- 🎨 Modern UI
- 🔒 Protected Routes
- 📱 Mobile Responsive
- Node.js, Express.js
- MongoDB, Mongoose
- EJS
- JWT
- Custom CSS, Font Awesome
- NanoID/ShortID
- Node.js (v14+)
- MongoDB
- npm or yarn
- Clone the repository:
git clone https://github.com/<your-username>/linkify.git cd linkify
- Install dependencies:
npm install
- Set up environment variables:
- Create a local
.envfile (do not commit it). You can copy from.env.example.
MONGO_URI=mongodb://$$$$$$$$$$$$$$$$$$ JWT_SECRET=your_jwt_secret_key_here PORT=8001
- Create a local
- Start MongoDB:
net start MongoDB # Windows sudo systemctl start mongod # Mac/Linux
- Run the app:
npm start
- Open http://localhost:8001
2_1Short_Url/
├── controllers/
├── middlewares/
├── models/
├── routes/
├── service/
├── views/
├── connect.js
├── index.js
├── .env.example
├── package.json
└── package-lock.json
- Create short URLs
- Register/Login
- Dashboard access
| Variable | Description |
|---|---|
MONGO_URI |
MongoDB connection string |
JWT_SECRET |
Secret key for JWT tokens |
PORT |
Server port |
POST /url- Create short URLGET /:shortId- RedirectPOST /user- RegisterPOST /user/login- LoginGET /- HomepageGET /signup- SignupGET /login- Login
Built with ❤️ by Avinash © 2026
- Font Awesome
- MongoDB
- Express.js
A full-stack URL Shortener web app for converting long URLs into short, shareable links with redirection and click tracking.