- .NET 5 Preview 3
- Docker for Desktop installed with Kubernetes is enabled.
- 2.2.0.5 (43884)
- Follow those steps at https://github.com/dapr/cli to install Dapr CLI.
- dapr: 0.0.7
- dapr cli: 0.0.7
- Follow these steps at https://github.com/dotnet/tye/blob/master/docs/getting_started.md to install
tyeCLI.- 0.3.0-alpha.20265.1+ef441e87047930e04d24646e0d89183b07552747
- EF Core CLI
- 3.1.3
Clone the source code at https://github.com/thangchung/practical-dapr
$ git@github.com:thangchung/practical-dapr.gitCurrently,
tyev0.2 and v0.3 withdaprextension wasn't working correctly. So please commentdaprextension temporary.
Find and replace all
noTyeconfigs in appsetttings.json fromtruetofalse.
$ tye runThen you can see tye dashboard as below
- Go to
webui, and onBindingscolumn click tohttplink (http://localhost:58275 in the picture) to access toBlazor Web UI - Go to
identity-api, and onBindingscolumn click tohttplink (http://localhost:58269 in the picture) to access toIdentity Server 4 - Go to
graph-api, and onBindingscolumn click tohttplink (http://localhost:58267 in the picture) to access toGraphQL Api Server
- Run
redisandsqlserverfromtye
$ tye run tye-min.yaml- Run dapr locally
$ powershell -f start.ps1Waiting seconds, then you happy to go http://localhost:5012
- Step 1: Open up
src\Identity\CoolStore.IdentityServer\appsettings.json, and turnIsDevtotrue - Step 2: Open up
tye.yaml, and comment outname: webui - Step 3: At root of project, open up terminal and type
tye run, and we getIdentityUrlandGraphQLUrlfrom thetye dashboard - Step 4: Open up
src\WebUI\CoolStore.WebUI.Host\appsettings.json, and turnIsDevtotrue, and replaceIdentityUrlwith the value at Step 3, and also replaceGraphQLUrlwith the value at Step 3. Final step, changesrc\WebUI\CoolStore.WebUI.Host\GraphQL\berry.jsonwith theGraphQLendpoint at the Step 3 - Step 5: Run
CoolStore.WebUI.Hostat the debug mode, then we are ready to develop thepractical-daprproject.
Happy hacking!
