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.
- π 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
- Backend: Node.js, Express.js
- Database: MongoDB (via Mongoose)
- View Engine: EJS
- Styling: Bootstrap
-
Clone the Repository
git clone https://github.com/avadhutmali/Url-Shortner.git cd Url-Shortner -
Install Dependencies
npm install
-
Configure Environment Create a
.envfile in the root folder and add:MONGODB_URI=your_mongo_connection_string PORT=3000 BASE_URL=http://localhost:3000 -
Run the Application
npm start
-
Visit in Browser
http://localhost:3000
This project is licensed under the MIT License.