project
Serverless URL Shortener
A real-world serverless application built on AWS to generate and manage custom short links, served from its own domain.
Try it
Paste a long URL below - it generates a short link on go.stevedel.com using the live API.
Note: this only works when the page is served from an origin the API allows via CORS.
Overview
- Create short URLs from long links using a simple web form
- Redirect visitors to the original URL via a clean custom domain
- Modern UX: "Go" button and clipboard-copy support
Architecture
- Frontend - static site hosted on S3 + CloudFront with HTTPS
- Backend - two Lambda functions: one to generate links, one to handle redirects
- API Gateway - one HTTP API with two routes:
POST /create→ creates short linksANY /{proxy+}→ handles redirection
- DynamoDB - stores the mapping between shortCode and long URL
- Custom domain -
go.stevedel.com, configured via Route 53 + ACM
Services used
LambdaAPI GatewayDynamoDB
S3CloudFrontRoute 53
ACMIAMGitHub Actions