samuelt27 / Movies

Web API REST de películas implementando la plantilla de Clean Architecture de Jason Taylor.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Movies

Web API REST de películas implementando la plantilla de Clean Architecture de Jason Taylor.

Tecnologías

  • ASP.NET Core Web API 6
  • Entity Framework Core 6
  • MediatR
  • FluentValidation
  • JWT & Identity Entity Framework Core 6
  • SQL Server
  • Azure
  • NSwag
  • NUnit, FluentAssertions, Moq & Respawn

DER

Instrucciones

Configuraciones

  • SQLServerConnectionr: Cadena de conexión a su base de datos SQL

WebAPI: appsettings.Development.json

"ConnectionStrings": {
  "SQLServerConnection": ""
}

Application.IntegrationTests: appsettings.json

"ConnectionStrings": {
  "SQLServerConnection": ""
}
  • AzureStorage: Crear una cuenta de almacenamiento, dirigirse a Claves de acceso, copiar la cadena de conexión de la key1 y pegarla en el .json

WebAPI: appsettings.json

"ConnectionStrings": {
  "AzureStorage": ""
}
  • LocalStorage: En caso de elegir almacenar los archivos de manera local, cambiar la inyección del servicio

Infrastructure: ServiceExtensions.cs

Migración y ejecución

  • Ejecutar en la terminal:
    • dotnet ef migrations add "First" --startup-project WebAPI --project Infrastructure --output-dir Persistence/Migrations
    • dotnet ef database update --startup-project WebAPI --project Infrastructure
  • Iniciar el proyecto desde WebAPI

About

Web API REST de películas implementando la plantilla de Clean Architecture de Jason Taylor.


Languages

Language:C# 100.0%