A webapp to track consumed alcohol and blood alcohol level. Uses Auth0 for authentication and requires auth0 account and app configuration.
-
Add 127.0.0.1 drunkapp.net to your hosts-file
-
Add dotnet user-secrets for the missing configuration keys (see appsettings.json)
This is for DrunkNet.API -folder
Set the following configurations:
LiteDb:DbLocation
Auth0:Domain
Auth0:ClientSecret
Auth0:ClientId
Auth0:Audience -
Start DrunkNet.sln (Rider/VS) and run it
-
Create a file 'auth.environment.ts' in the environments-folder.
Add auth configuration values in it as follows (see app.module.ts on how they are used):export const authConfiguration = { authDomain: '', authAudience: '', clientId: '', apiDomain: '' };
-
Build the Angular app. See README.md under the Angular app for more info
-
Open https://drunkapp.net and enjoy
set new values example
dotnet user-secrets set "Movies:ServiceApiKey" "12345"
list all set user-secrets
dotnet user-secrets list