Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dotnet-malaga/aspire-todo-app

En DotNetMálaga 2024, Unai Zorrilla y Andoni Santamaría ofrecieron una sesión detallada sobre cómo integrar ASPIRE en proyectos nuevos y existentes, destacando sus ventajas en la modernización y mejora de aplicaciones.
https://github.com/dotnet-malaga/aspire-todo-app

aspire cloud database devtools testing

Last synced: 9 days ago
JSON representation

En DotNetMálaga 2024, Unai Zorrilla y Andoni Santamaría ofrecieron una sesión detallada sobre cómo integrar ASPIRE en proyectos nuevos y existentes, destacando sus ventajas en la modernización y mejora de aplicaciones.

Awesome Lists containing this project

README

        

# Local Development

![Presentation image](https://pbs.twimg.com/media/GdD9BG9WIAAgsv_?format=jpg&name=large)

## Prerequisites

- Docker
- .NET 8.0
- Node lts

## Running the App

In the src directory go to TodaApp.client and run:

```
npm install
npm run dev
```

If you want to use only docker compose, you can run the following command in the root directory:

```
docker-compose up
```

go to the api server program and make a

```
dotnet run
```

else just run AppHost with Aspire as the startup project.

# Running the tests

You can execute the unit tests by running the following commands in the src directory:

1. Build the project.
```
dotnet build TodaApp.sln /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary
```

2. Execute unit tests.
```
dotnet test TodaApp.sln
```

# Making migrations

## .NET Core CLI

With entity framework core, you can make migrations by running the following command in the src/TodaApp.Application directory.
```
dotnet ef migrations add --context DbContext
```

To generate the migration SQL script we must go to the root folder of the project and execute the following command with these arguments:
- \ The file name of the previous migration.
- \ The file name of the previous migration.
- \ YYYYMMDD_filename.sql
```
dotnet ef migrations script --project src\TodaApp.Application\TodaApp.Application.csproj --startup-project src\TodaApp.Application\TodaApp.Application.csproj --context TodaApp.Application.Infrastructure.Persistence.CeraniumDbContext --configuration Debug --verbose --output infra/database/migrations/
```