This is a URL shortener service app designed to shorten long URLs into more manageable and shareable links.
Click here to visit the UrlShortner webApp
- URL Shortening: Converts long URLs into short, unique links.
- Statistics: Track the usage statistics of shortened links.
- API Access: Provides APIs for integration with other applications.
- Node.js
- MongoDB
- Clone the repository:
git clone https://github.com/lalitkishor9/urlShortner
- Install dependencies:
npm install
- Configure environment variables:
- Create a
.env
file based on.env.example
and add necessary configurations.
- Create a
- Start the server:
npm start
- Shorten URL:
POST /url
- Request:
{ "url": "your_long_url_here" }
- Response:
{ "shortened_url": "your_shortened_url_here" }
- Request:
- Link Statistics:
GET /url/analytics/:shortened_url_id
- Response:
{ "original_url": "your_original_url_here", "clicks": 100 }
- Response:
PORT
: Port number for the serverMONGODB_URI
: MongoDB connection string- Other necessary variables for API keys, secrets, etc.
Contributions are welcome! Feel free to submit issues or pull requests.
Thanks to the developers of Node.js and MongoDB for providing powerful tools that form the backbone of this application. Your dedication to building robust and scalable technologies has greatly contributed to the development of this URL shortener service app.
Special thanks to the open-source community contributors and maintainers of libraries/frameworks used in this project, including:
- Express.js: For simplifying server-side development with Node.js.
- Mongoose: For providing an elegant MongoDB object modeling tool.
- dotenv: For simplifying environment variable management.
- ShortID: For generating unique short IDs for shortened URLs.
Your contributions have been invaluable in shaping this application and facilitating its functionality. Your commitment to open-source development is highly appreciated.