Skip to content

Kalpana-chavhan/Shortly--URL-Shortner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SHORTLY: URL-Shortner

(Scalable Full Stack Production Grade System-MERN Stack)

A fast and lightweight URL Shortener application built using the MERN stack, allowing users to convert long URLs into short, shareable links with click-tracking and link management features.


Features

  • Shorten long URLs into unique short codes

  • Redirect short links to original URLs

  • Track total click counts

  • Manage links (view, delete, copy)

  • Server-side validations & error handling

  • MongoDB for storing URLs

  • Clean & responsive UI


Tech Stack

  • Frontend: React.js
  • Backend: Node.js, Express.js
  • Database: MongoDB
  • Other: Mongoose, Axios, CORS, dotenv

Installation & Setup

1️⃣ Clone the repository git clone https://github.com/kalpana-chavhan/url-shortener.git cd url-shortener

2️⃣ Backend Setup cd server npm install

Create a .env file:

MONGO_URI=your_mongo_url PORT=5000 BASE_URL=http://localhost:5000

Start backend:

npm start

3️⃣ Frontend Setup cd client npm install npm start

🔗 API Endpoints POST /shorten

Shorten a URL Body:

{ "longUrl": "https://example.com" }

GET /:shortCode

Redirects to the original URL.


How It Works

  1. User enters long URL
  2. Backend generates unique short code
  3. URL + code stored in MongoDB
  4. Short link redirects to original URL
  5. Click count increases on each redirect

Project Status

This project is currently a work in progress. Some features may be incomplete, and the application may contain bugs or unstable behavior. The codebase is under active development, and changes may be made frequently as improvements, fixes, and enhancements are implemented.


License

This project is licensed under the MIT License.

About

A lightweight and efficient URL Shortener built using MongoDB, Express, React, and Node.js. Users can create short, trackable URLs, manage links from a dashboard, and view basic analytics such as click count and creation date. Includes secure API endpoints, validation, and clean UI. Perfect for learning CRUD, REST APIs, and backend logic.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages