Skip to content

Latest commit

 

History

History
77 lines (45 loc) · 1.68 KB

README.md

File metadata and controls

77 lines (45 loc) · 1.68 KB

TinyLinker - MERN URL Shortener

TinyLinker is a URL shortener web application developed using React.js, MongoDB, Node.js, Express.js, TypeScript, and Vite. It allows users to generate short URLs for long links and provides usage statistics for each URL.

Visit the live website: TinyLinker Live

Features

  • URL Shortening: Enter a long URL, and TinyLinker will generate a short URL for you.
  • Usage Statistics: Track the number of times each short URL has been used.
  • Technologies Used: React.js, MongoDB, Node.js, Express.js, TypeScript, and Vite.

Getting Started

Prerequisites

Make sure you have the following installed on your machine:

Installation

Clone the Repository

  1. Open your terminal and clone the repository:

    git clone https://github.com/Pa1mekala37/MERN-URL-Shortener.git
    

Running the code in Local

  1. Navigate to the project directory:

    cd MERN-URL-Shortener
    

Backend Setup

  1. Navigate to the Backend directory:

    cd Backend
    
  2. Install backend dependencies:

    npm install
    
  3. Create a .env file in the Backend directory and add the following line, replacing <your-mongodb-url> with your MongoDB database URL:

    CONNECTION_STRING=<your-mongodb-url>
    
  4. Start the backend server:

    nodemon
    

Frontend Setup

  1. Navigate to the Frontend directory:

    cd Frontend
    
  2. Install Frontend dependencies:

    npm install
    
  3. Start the Frontend server:

    npm run dev