A lightweight URL shortener built with ASP.NET Core on .NET 9. Created with ASP.NET Core Web Application template, without controllers checked to keep it as one focused service for microservice deployment.
Once integrated into Azure, this application will store URLs at a maximum of 100 entries using Azure Table Storage (as the cheapest NoSQL option, compared to CosmosDB) automatically, and later implement basic telemetry with Azure App Insights.
-
Clone the repository
-
Install dependencies
- Install Azurite globally:
npm install -g azurite
- Install Azurite globally:
-
Run the application
- Visual Studio: Open the solution and hit F5
- Or: CLI:
dotnet run
-
Start Azurite (required for storage)
azurite
curl -s http://localhost:5120/health
curl -s -X POST http://localhost:5120/api/shorten \
-H "Content-Type: application/json" \
-d "{\"url\":\"https://www.google.com\"}"
Azure deployment coming soon using GitHub Actions, similar to my QR Scanner Service.
- ASP.NET Core (.NET 9)
- Azure Storage (via Azurite for local development)