Skip to content

Your own URL Shortener: Url Shortener is built uisng API (ASP.NET Core minimal api), PostgreSQL and Auth0 for authentication and UI (Webassembly Blazor UI) (.NET 8)

License

Notifications You must be signed in to change notification settings

iAmBipinPaul/UrlShortener

Repository files navigation

Url Shortener

Your own URL Shortener : Url Shortener built using API (ASP.NET Core Minima,), PostgreSQL and Auth0 for authentication and UI (Webassembly Blazor UI)


  1. API : Built on ASP.NET core minimal API (.NET 8)
  2. UI : Blazor Webassembly

Getting started


Prerequisites

Setting up project locally

API

  1. 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

UI

  1. 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
  }
  1. In VS studio or Rider select UrlShortener.UI.Blazor project as startup project and run
  2. In VS code can navigate to src/UI/UrlShortener.UI.Blazor and then type dotnet 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)

Contributing

To improve and optimize create pull request or open issue

About

Your own URL Shortener: Url Shortener is built uisng API (ASP.NET Core minimal api), PostgreSQL and Auth0 for authentication and UI (Webassembly Blazor UI) (.NET 8)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages