This is a C# project to show creating a URL shortener using Minimal Apis and Azure App config.
For more details on how it is was build and how to set the project up see https://goto42.dev/about
This project is written in dotnet 6 and can be run locally after initial setup.
- Create an Azure Storage Account
- Rename
appsettings.devexample.jsontoappsettings.Developmentand set theStorageUrivalue. - Create a table named
UrlLookUp - Assign your azure account
Storage Table Data Readerpermission on the storage account - Login to Azure Cli
- From the src folder run
dotnet run
This project does not yet have a UI to add new links. To add any new links add a new entry to the storage table. As we do this we need to set the partition key to url, the row key as the short Url vault and a new property of TargetUrl with the value of the destination Url.
- complete readme with full setup instructions
- API filters to allow other pages
- Unit and integration tests
- Support for adding Urls
- Build script
- Bicep templates for deployment
0.2.0 - Added output cache 0.1.1 - Update partition key for scale 0.1.0 - Initial Commit