Setup with Aspire - medhatelmasry/GoodBooks GitHub Wiki
- .NET 9.0
- Docker
- .NET Aspire Workload
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 the repo:
git clone https://github.com/medhatelmasry/GoodBooks.git cd GoodBooks - List branches with:
git branch -r - Select the appropriate branch with:
git checkout -b my-branchReplace 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 -
This command will confirm to you the current branch:
git branch - Make sure that Docker is started.
-
Change directory into the into the src.AppHost then start the Aspire orchestration with the following command:
cd src/src.AppHost dotnet watch
The database gets auto seeded upon startup of the API project. Thereafter, test endpoint http://localhost:8001/api/Financials/Accounts