Setup with Aspire - medhatelmasry/GoodBooks GitHub Wiki

Pre-requisites

  • .NET 9.0
  • Docker
  • .NET Aspire Workload

.NET Aspire Setup

In any terminal window folder, run the following command before you install .NET Aspire:

dotnet workload update 

To install the .NET Aspire workload from the .NET CLI, execute this command:

dotnet workload install aspire

Check your version of .NET Aspire, with this command:

dotnet workload list

Clone and run solution

  1. Clone the repo:
    git clone https://github.com/medhatelmasry/GoodBooks.git
    cd GoodBooks
    
  2. List branches with:
    git branch -r
    
  3. Select the appropriate branch with:
    git checkout -b my-branch
    

    Replace my-branch with the branch you want to change to. Choose the development branch named main. The following command creates a new branch called main (-b) that tracks the remote branch origin/main:

    git checkout -b main origin/main
    
  4. This command will confirm to you the current branch:
    git branch
    
  5. Make sure that Docker is started.
  6. Change directory into the into the src.AppHost then start the Aspire orchestration with the following command:
    cd src/src.AppHost
    dotnet watch
    
  7. The database gets auto seeded upon startup of the API project. Thereafter, test endpoint http://localhost:8001/api/Financials/Accounts
⚠️ **GitHub.com Fallback** ⚠️