Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/faizankhan298/urlshortener
"URL Shortener Application: This application is a user-friendly URL shortener built with Node.js, Express, MongoDB, and EJS for templating. Users can enter a URL to receive a shortened link, which redirects to the original URL. The application also tracks the number of times each shortened URL is accessed, providing valuable insights on link usage"
https://github.com/faizankhan298/urlshortener
backend-development link-tracking rest-api templating-engine url-redirection url-shortener
Last synced: 18 days ago
JSON representation
"URL Shortener Application: This application is a user-friendly URL shortener built with Node.js, Express, MongoDB, and EJS for templating. Users can enter a URL to receive a shortened link, which redirects to the original URL. The application also tracks the number of times each shortened URL is accessed, providing valuable insights on link usage"
- Host: GitHub
- URL: https://github.com/faizankhan298/urlshortener
- Owner: Faizankhan298
- Created: 2024-06-30T09:15:16.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-07-22T13:46:02.000Z (6 months ago)
- Last Synced: 2024-11-09T00:53:49.176Z (2 months ago)
- Topics: backend-development, link-tracking, rest-api, templating-engine, url-redirection, url-shortener
- Language: EJS
- Homepage: https://urlshortener-ngnj.onrender.com/
- Size: 131 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# URL Shortener Application
This application is a simple URL shortener built with Node.js, Express, MongoDB, and EJS for templating. It allows users to enter a URL to be shortened and provides a simplified link that redirects to the original URL. Additionally, it tracks the number of times each shortened URL is accessed.
## Features
- URL shortening: Users can submit a URL to receive a shortened version.
- Access tracking: The application tracks how many times each shortened URL is accessed.
- Responsive design: The application is styled to be responsive, making it accessible on various devices.## Technologies Used
- **Node.js**: A JavaScript runtime built on Chrome's V8 JavaScript engine.
- **Express**: A minimal and flexible Node.js web application framework.
- **MongoDB**: A NoSQL database for storing URL mappings and access counts.
- **EJS**: A templating language to generate HTML markup with plain JavaScript.
- **CSS**: For styling the application.## Setup and Installation
1. **Clone the repository**
```bash
git clone
2. **Navigate to the project directory**```bash
cd
3. **Install dependencies**```bash
npm install
4. **Connect to MongoDB**
Ensure MongoDB is installed and running on your system. Update the connection string in the connectToMongoDB function if necessary
5. **CStart the application**```bash
npm startThe server will start running on http://localhost:8000.
## Usage
## Creating a Shortened URLNavigate to `http://localhost:8000` and enter the URL you wish to shorten in the provided form. Upon submission, the application will display the shortened URL.
## Accessing a Shortened URL
Use the shortened URL provided by the application in any web browser. The application will redirect you to the original URL and increment the access count.
![Homepge](image2.png)
![Homepge](image.png)## Contributing
Contributions to the project are welcome. Please follow the standard fork and pull request workflow.
## License
This project is licensed under the MIT License - see the LICENSE file for details.