Skip to content

A URL Shortener developed as part of a technical exercise

Notifications You must be signed in to change notification settings

A-Mckinlay/Shrtnr

Repository files navigation

Shrtnr

To get it running:

  • Add an appsettings file and fill in the connection string and provide a string to use as the salt for hashids e.g:
{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  "ConnectionStrings": {
    "ShrtUrlTableConnectionString": "YOUR_CONNECTION_STRING"
  },
  "AllowedHosts": "*",
  "Salt":  "LITERALLY_ANY_STRING_YOU_LIKE"
}

For the ShrtUrlTable I have been using an Azure CosmosDB Table. On Windows it is possible to use the Azure Storage Emulator instead of spinning up a resource. I am on mac so have not set it up this way.

About

A URL Shortener developed as part of a technical exercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published