- Todo: Add custom getting started steps
Configure the application using appsettings.json
, appsettings.Development.json
or dotnet secrets
dotnet user-secrets init --project src/Api
To start the app run:
dotnet run --project src/Api
When you run the application the database will be created (if it doesn't exist) and the migrations will be applied.
To run the migrations you will need to add the following flags to your ef commands.
-p | --project src/Application
-s | --startup-project src/Api
-o | --output-dir Infrastructure/Persistance/Migrations
For example, to add a new migration:
dotnet ef migrations add \
-p src/Application \
-s src/Api \
-o Infrastructure/Persistance/Migrations "MigrationName"
dotnet ef migrations add -p src/Application -s src/Api -o Infrastructure/Persistance/Migrations "MigrationName"
Generate a bearer token using dotnet user-jwts with optional roles and policies
dotnet user-jwts create
dotnet user-jwts create --role "Administrator"