Skip to content

satendra03/urlShortner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener

This is a URL Shortener application built with a backend using Express and MongoDB, and a frontend using Vite and React.


This is not a hosted application, you can use it locally


Features

  • Shorten URLs
  • Redirect to original URLs
  • View clicks of shortened URLs

Prerequisites

  • Node.js
  • Vite - React
  • MongoDB

Getting Started

Backend Setup

  1. Clone the repository:
    git clone https://github.com/satendra03/urlShortner.git
    cd urlShortner
  2. Go to backend folder and install backend dependencies:
    cd backend
    npm install
  3. Create a .env file in the root directory and add your MongoDB URI:
    MONGO_URI=your_mongodb_uri
    PORT=8000
  4. Start the server
    npm run dev

Frontend Setup

  1. Go to frontend folder and install dependencies:
    cd frontend
    npm install
  2. Start the server
    npm run dev
  3. Open your browser and navigate to http://localhost:5173.

Usage

  1. Enter a URL in the input field and click "Shorten URL".
  2. The shortened URL will be displayed below the input field.
  3. Click the shortened URL to be redirected to the original URL.

Contact Us

We’d love to hear from you! Whether you have a question, suggestion, or issue to report, feel free to get in touch with us.

Ways to Contact Us:

  1. GitHub Issues: You can open an issue directly on this repository for bugs, feature requests, or general inquiries.

  2. Email: Reach out to us via email at:

  3. Social Media:

  4. Buy Me A Coffee:

    • Small Contibution:

About

A simple and powerful URL shortener that lets you create short links, track analytics. Built with MERN stack, it’s designed for easy link sharing and performance tracking. Perfect for individuals and businesses alike!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors