Skip to content

A minimal URL shortening web app built with Node.js, Express.js, and MongoDB. It allows users to generate short links from long URLs and handles redirection seamlessly. Ideal for learning backend basics and MongoDB integration.

Notifications You must be signed in to change notification settings

avadhutmali/Url-Shortner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”— URL Shortener

A simple and efficient URL Shortening service built using Node.js, Express.js, and MongoDB. This app allows users to shorten long URLs and get a custom short link that redirects to the original URL.

Node.js Express.js MongoDB


πŸ“Œ Features

  • πŸ”— Shorten long URLs to compact, shareable links
  • πŸ“¦ Stores data in MongoDB
  • πŸš€ Fast redirection from short link to original URL
  • πŸ§ͺ Includes validation and error handling
  • 🎯 Easy-to-understand code for learning backend basics

πŸ› οΈ Tech Stack

  • Backend: Node.js, Express.js
  • Database: MongoDB (via Mongoose)
  • View Engine: EJS
  • Styling: Bootstrap

πŸ–₯️ Setup & Installation

  1. Clone the Repository

    git clone https://github.com/avadhutmali/Url-Shortner.git
    cd Url-Shortner
  2. Install Dependencies

    npm install
  3. Configure Environment Create a .env file in the root folder and add:

    MONGODB_URI=your_mongo_connection_string
    PORT=3000
    BASE_URL=http://localhost:3000
    
  4. Run the Application

    npm start
  5. Visit in Browser

    http://localhost:3000
    

πŸ“„ License

This project is licensed under the MIT License.

About

A minimal URL shortening web app built with Node.js, Express.js, and MongoDB. It allows users to generate short links from long URLs and handles redirection seamlessly. Ideal for learning backend basics and MongoDB integration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published