Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.
/ DevTrackR.API Public archive

🟣 C# e .NET 6 (5ª ed.)

License

Notifications You must be signed in to change notification settings

samuel-oldra/DevTrackR.API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevTrackR - Jornada .NET Direto ao Ponto

Tecnologias e práticas utilizadas • Funcionalidades • Comandos

Foi desenvolvida uma API REST completa de gerenciamento de pacotes.

Tecnologias e práticas utilizadas

  • ASP.NET Core com .NET 6
  • Entity Framework Core
  • SQL Server / SQLite / In-Memory database
  • Swagger
  • Injeção de Dependência
  • Programação Orientada a Objetos
  • Padrão Repository
  • Envio de E-mails com SendGrid
  • Clean Code
  • Publicação

Funcionalidades

  • Cadastro, Listagem, Detalhes de Pacote
  • Cadastro de Atualização de Pacote

alt text

Comandos

Comandos básicos

dotnet new gitignore
dotnet new webapi -o DevTrackR.API
dotnet new console -o DevTrackR.Console
dotnet build
dotnet run
dotnet watch run
dotnet publish

Comandos user-secrets

dotnet user-secrets init
dotnet user-secrets set "ConnectionStrings:DevTrackCs" "Server=***;Database=***;User ID=***;Password=***;"
dotnet user-secrets set "SendGridApiKey" "1234567890"
dotnet user-secrets remove "ConnectionStrings:DevTrackCs"
dotnet user-secrets remove "SendGridApiKey"
dotnet user-secrets clear
dotnet user-secrets list

Tool Entity Framework Core (migrations)

dotnet tool install --global dotnet-ef
dotnet tool uninstall --global dotnet-ef

Migrations

dotnet ef migrations add InitialMigration -o Persistence/Migrations
dotnet ef database update