Soft-Link is a simple and efficient URL shortener designed to streamline the process of creating and sharing shortened URLs. Users can submit their long URLs to the system, receiving a shortened version in return. When others click on the shortened URL, they are seamlessly redirected to the original link.
- URL Shortening: Quickly generate concise and shareable links.
- Redirection: Smoothly redirect users to the original URL when clicking on the shortened link.
- Runtime: Node.js
- Language: JavaScript/TypeScript
- Framework: Express.js
- Database: MongoDB with Mongoose
- Testing: Jest
- Documentation and Manual Testing: Postman
1. Install Dependencies:
npm install
2. Set Environment Variables:
Rename the .env.example
file to .env
and fill in the required values.
1. Start the Server:
npm start
2. Run Tests:
npm test
Explore and test the API using Postman. Refer to the provided Postman collection for details.
1. Create a Shortened URL:
POST {{URL}}/api/url/shorten
2. Redirect to Original URL:
GET {{URL}}/api/url/:shortId
Refer to the docs
directory for design details:
- architecture-diagram for the project's architecture diagram.
- erd for the simple Entity-Relationship Diagram.
This project is licensed under the MIT License.