URL Shortener API
This project is a dedicated backend service built to handle URL abbreviation and redirection. It focuses on speed and reliability, ensuring that long URLs are converted into compact, unique identifiers and that redirects happen instantaneously.
Key Features
- Collision-Resistant IDs: Utilizes
nanoidto generate unique, URL-safe short IDs with a low collision probability. - Efficient Redirection: Optimized database queries ensure minimal latency when redirecting users to original URLs.
- Type-Safe ORM: leverages Prisma for robust and type-safe database interactions, minimizing runtime errors.
- API Testing: Includes a comprehensive Postman collection for easy testing and integration.
Tech Stack
- Runtime: Node.js
- Framework: Express.js
- Database: PostgreSQL
- ORM: Prisma
- Utilities: Nanoid