Skip to content

blueboxes/minimal-api-url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Api and Azure App Config Url Shortener

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

Running the Project

This project is written in dotnet 6 and can be run locally after initial setup.

  1. Create an Azure Storage Account
  2. Rename appsettings.devexample.json to appsettings.Development and set the StorageUri value.
  3. Create a table named UrlLookUp
  4. Assign your azure account Storage Table Data Reader permission on the storage account
  5. Login to Azure Cli
  6. From the src folder run dotnet run

Adding Links

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.

Todo:

  • 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

Release Notes

0.2.0 - Added output cache 0.1.1 - Update partition key for scale 0.1.0 - Initial Commit

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published