To run you need to update your Postgres database:
$ dotnet ef database update -p CatTok.Api
Create google auth credentials and add these urls to the Authorized redirect URIs:
https://localhost:7003 https://localhost:7003/signin-google https://localhost:7003/api/auth/google/login https://localhost:7003/api/auth/google/callback
Then open appsettings.json and specify google client id, secret and jwt security key
"GoogleOAuthOptions": {
"ClientId": "*",
"ClientSecret": "*"
},
"JwtSettings": {
"Key": "*",
"HashKey": "*" <-- key for hashing passwords
... <-- Optional (for production)
Then start web app
$ dotnet run --project CatTok.Api
To see swagger navigate to https://localhost:7003/swagger