Skip to content

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

🔗 URL Shortener

A simple URL Shortener application built with Node.js, Express.js, and JavaScript. This project allows users to convert long URLs into shorter, easy-to-share links.

🚀 Features

  • Shorten long URLs
  • Generate unique short codes
  • Redirect to the original URL
  • Simple and beginner-friendly code
  • REST API using Express.js

🛠️ Tech Stack

  • Node.js
  • Express.js
  • JavaScript
  • npm

📂 Project Structure

URL-Shortener/
│── node_modules/
│── package.json
│── package-lock.json
│── server.js

📦 Installation

  1. Clone the repository
git clone https://github.com/tirthraj01/URL-Shortener.git
  1. Navigate into the project folder
cd URL-Shortener
  1. Install dependencies
npm install
  1. Start the server
node server.js

or (if using nodemon)

nodemon server.js

🌐 Usage

Once the server is running, open your browser or API client and interact with the URL Shortener endpoints.

Example:

  • Input: https://www.example.com/very/long/url
  • Output: http://localhost:3000/abc123

🎯 Learning Objectives

This project helps you understand:

  • Express.js basics
  • Routing
  • Handling HTTP requests
  • Generating random short IDs
  • Backend project structure
  • npm package management

📌 Future Improvements

  • Store URLs in MongoDB
  • User authentication
  • Custom short URLs
  • Click analytics
  • URL expiration
  • Copy-to-clipboard button
  • Frontend with React

👨‍💻 Author

Tirthraj Chavan


⭐ If you found this project helpful, consider giving it a star!

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages