Welcome to the URL Shortener project! Create shortened links quickly and efficiently using Node.js, Express.js, and MongoDB.
- Shorten URLs: Easily generate short and shareable links.
- Fast Redirection: Redirects users to the original long URL seamlessly.
- Node.js and Express.js: Backend powered by Node.js with Express.js for smooth routing.
- MongoDB Database: Utilizing MongoDB to store and retrieve URL data.
- Simple and Intuitive UI: User-friendly interface for a straightforward experience.
- Node.js: Backend server scripting.
- Express.js: Web application framework for Node.js.
- MongoDB: NoSQL database for storing URL data.
-
Clone the repository:
git clone https://github.com/your-username/url-shortener.git
-
Navigate to the project directory:
cd url-shortener
-
Install dependencies:
npm install
-
Set up MongoDB:
- Create a MongoDB database and update connection details in
config.js
.
- Create a MongoDB database and update connection details in
-
Run the server:
npm start
-
Open your browser and visit:
http://localhost:3000
- Update MongoDB connection details in
config.js
to match your database setup.
- Shorten URL:
POST /api/shorten