tfsantosbr / labs-cash-flow-dotnet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CashFlow API

Patterns Used In This Application

Application Architecture

Applying Development Certifications

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

Migrations

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

Running API Locally

You will need .NET CLI to run this commands

dotnet restore
dotnet build
dotnet run --project src/CashFlow.Api

Running Docker Infrastructure Dependencies

You will need Docker Desktop to run this commands

docker-compose up -d

Accessing API

About


Languages

Language:C# 95.6%Language:Dockerfile 4.4%