URL Shortener
A simple and efficient URL shortener service.
The URL shortener is a service that takes long URLs and converts them into short, easy-to-share links. This project provides a simple implementation of a URL shortening service, allowing users to create and manage short URLs.
- Shorten long URLs.
- Redirect users from short URLs to the original long URLs.
- Track basic analytics such as the number of clicks on a short URL.
- Customizable short URL generation.
- Secure and scalable architecture.
- Node.js (version 18.17.1)
- MongoDB (version any)
- Any additional dependencies...
Clone the repository:
```bash
git clone https://github.com/yourusername/url-shortener.git
```
backend:
-
Install dependencies:
cd server npm install
-
Start the server:
npm run dev
Frontend:
-
Install dependencies:
cd cient npm install
-
Configure the application by updating the configuration file (
config.js
) with your MongoDB connection details and other settings. -
Start the server:
npm start
The URL shortener service should now be running on http://localhost:8080
.
-
Access the URL shortener service through the web interface or use the API endpoints.
-
Shorten a URL by submitting it through the provided interface or by making a POST request to the
/api/shorten
endpoint. -
Share the generated short URL.
-
Users clicking on the short URL will be redirected to the original long URL.