This is a simple URL shortener web application built using Express.js, EJS, and MongoDB. It allows users to shorten long URLs into more manageable, shortened versions. Users can also sign up for an account to manage their shortened URLs.
- Shorten long URLs into easy-to-share shortened URLs.
- User authentication system for signup and login.
- Users can view, edit, and delete their shortened URLs.
- MongoDB database integration for storing URL data and user information.
- Responsive design using EJS templates for a seamless user experience on both desktop and mobile devices.
-
Clone the repository:
git clone https://github.com/theavnishkumar/url-shortener.git
-
Install dependencies:
cd url-shortener npm install
-
Set up MongoDB:
- Make sure you have MongoDB installed and running locally.
- Update the MongoDB connection string in
connection.js
file.
-
Run the application:
npm start
-
Access the application in your web browser:
http://localhost:4000
-
Sign Up/Login: Users can sign up for an account or log in if they already have one.
-
Shorten URL: After logging in, users can enter a long URL and generate a shortened URL.
-
Manage URLs: Users can view, and delete their shortened URLs from their dashboard.
- Express.js: Web application framework for Node.js.
- EJS: Embedded JavaScript templating for dynamic HTML generation.
- MongoDB: Document-oriented NoSQL database for storing URL data and user information.
- Mongoose: MongoDB object modeling for Node.js.
- Other dependencies listed in
package.json
.
Contributions are welcome! Feel free to open issues or submit pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.