The news API built on .NET 5 following the Clean Architecture and CQRS with authentication and authorization
- Set connection strings inside of
appsettings.Persistence.json
or set them using user-secrets. - Run migrations:
dotnet ef database update --project="src/Persistence.Primary" --startup-project="src/Presentation.API" --context=XNewsDbContext
dotnet ef database update --project="src/Persistence.Logging" --startup-project="src/Presentation.API" --context=XNewsLoggingDbContext
dotnet ef database update --project="src/Infrastructure.Identity" --startup-project="src/Presentation.API" --context=XNewsIdentityDbContext
- Configure the JWT in
appsettings.JWT.json