Necessary for run application in HTTPS, locally and docker
Run this commands to apply development certifications:
dotnet dev-certs https --clean
dotnet dev-certs https -ep $USERPROFILE/.aspnet/https/aspnetapp.pfx -p dev@123
dotnet dev-certs https --trust
You will need .NET EF Tools to run this commands
# add migration
dotnet ef migrations add {MIGRATION_NAME} -p src/CashFlow.Infrastructure/ -c CashFlowContext -s src/CashFlow.Api -o Migrations
# remove migration
dotnet ef migrations remove -p src/CashFlow.Infrastructure/ -c CashFlowContext -s src/CashFlow.Api
# update database
dotnet ef database update -p src/CashFlow.Infrastructure -c CashFlowContext -s src/CashFlow.Api
# generate scripts for manual database update
dotnet ef migrations script -p src/CashFlow.Infrastructure/ -c CashFlowContext -s src/CashFlow.Api -o ./scripts/migrations.sql
You will need .NET CLI to run this commands
dotnet restore
dotnet build
dotnet run --project src/CashFlow.Api
You will need Docker Desktop to run this commands
docker-compose up -d
- Docker -> https://localhost:8001/swagger/index.html
- Locally -> https://localhost:7198/swagger/index.html