SnapLink is a full-stack URL shortening application that allows users to convert long URLs into short, shareable links. It provides fast redirection, unique short codes, and a clean API-driven architecture suitable for real-world use cases.
This project focuses on scalability, backend design, and production-ready development practices.
- 🔗 Shorten long URLs into compact, unique links
- 🚀 Fast redirection to original URLs
- 🧠 Collision-free short code generation
- 📊 Basic request handling and validation
- Node.js
- Express.js
- MongoDB
- Mongoose
- React
- Git & GitHub
- Postman (API testing)
- Node.js
SnapLink-URL-Shortener/
├── backend/
│ ├── models/ # Mongoose schemas
│ ├── routes/ # API routes
│ ├── controllers/ # Business logic
│ └── index.js # App entry point
├── frontend/ # React frontend
└── README.md
Follow the steps below to run the project locally.
git clone https://github.com/d3vpool/SnapLink-URL-Shortener.git
cd SnapLink-URL-Shortenercd backend
npm installCreate a .env file inside the backend directory and add:
MONGO_URI=your_mongodb_connection_string
PORT=5000
BASE_URL=http://localhost:5000Start the backend server:
npm startThe backend will run on:
http://localhost:5000cd frontend
npm install
npm startThe frontend will run on:
http://localhost:3000