A simple yet powerful URL shortening service that allows users to transform long URLs into short, shareable links. Along with URL shortening, this service provides insightful analytics, giving users the ability to track and monitor their shortened URLs' performance.
Submit any long URL, and instantly receive a shorter, easy-to-share URL in return.
When a shortened URL is accessed, users will be redirected seamlessly to the original long URL.
Monitor the performance of your shortened URLs:
- Track the total number of clicks for each shortened URL.
To get started with the URL Shortener Service locally, follow these steps:
-
Clone the Repository
git clone https://github.com/GautamKaran/URL-Shortener-api.git cd url-shortener-
-
Install Dependencies
npm install
-
Environment Variables To run this project, you will need to add the following environment variables to your .env file
PORT=3000 MONGODB_URI=mongodb+srv://your-username:your-password@cluster0.lxl3fsq.mongodb.net CORS_ORIGIN=*
-
Run the Application
npm run dev
-
Access the Service: Open your browser and navigate to http://localhost:8000
Javascript, Node.js, Express.js, MongoDB...