Your own URL Shortener : Url Shortener built using API (ASP.NET Core Minima,), PostgreSQL and Auth0 for authentication and UI (Webassembly Blazor UI)
- .NET
- Visual Studio 2022 or VS Code or Rider (VS 2022)
- Configuration
"ConnectionStrings": {
"DbContext":"Add connection string here"
},
"DefaultUrlForRedirect": "your own default Url for redirect",
"Auth0_Authority": "your own auth0 authority", // eg https://tenant1.jp.auth0.com/
"Auth0_Audience": "your own auth0 audience" // eg portal.github.in
blog for using Auth0 in Webassembly Blazor.(link)
2. In VS studio or Rider select UrlShortener.Server
project as startup project and run
3. In VS code can navigate to src/API/UrlShortener.Server
and then type dotnet run
and hit enter
- Configuration
"RemoteHostUrl": "your API URL",
"Auth0": {
"Authority": "your own auth0 authority", // eg https://tenant1.jp.auth0.com/
"ClientId": "your own auth0 client Id",
"Audience": "your own auth0 audience" // eg portal.github.in
}
- In VS studio or Rider select
UrlShortener.UI.Blazor
project as startup project and run - In VS code can navigate to
src/UI/UrlShortener.UI.Blazor
and then typedotnet run
and hit enter
(In Visual studio you can select multiple project as startup project by right clicking on Solution file and set start up project)
To improve and optimize create pull request or open issue