- .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
tye
CLI.- 0.3.0-alpha.20265.1+ef441e87047930e04d24646e0d89183b07552747
- EF Core CLI
- 3.1.3
Clone the source code at https://github.com/thangchung/practical-dapr
$ [email protected]:thangchung/practical-dapr.git
Currently,
tye
v0.2 and v0.3 withdapr
extension wasn't working correctly. So please commentdapr
extension temporary.
Find and replace all
noTye
configs in appsetttings.json fromtrue
tofalse
.
$ tye run
Then you can see tye dashboard
as below
- Go to
webui
, and onBindings
column click tohttp
link (http://localhost:58275 in the picture) to access toBlazor Web UI
- Go to
identity-api
, and onBindings
column click tohttp
link (http://localhost:58269 in the picture) to access toIdentity Server 4
- Go to
graph-api
, and onBindings
column click tohttp
link (http://localhost:58267 in the picture) to access toGraphQL Api Server
- Run
redis
andsqlserver
fromtye
$ tye run tye-min.yaml
- Run dapr locally
$ powershell -f start.ps1
Waiting seconds, then you happy to go http://localhost:5012
- Step 1: Open up
src\Identity\CoolStore.IdentityServer\appsettings.json
, and turnIsDev
totrue
- 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 getIdentityUrl
andGraphQLUrl
from thetye dashboard
- Step 4: Open up
src\WebUI\CoolStore.WebUI.Host\appsettings.json
, and turnIsDev
totrue
, and replaceIdentityUrl
with the value at Step 3, and also replaceGraphQLUrl
with the value at Step 3. Final step, changesrc\WebUI\CoolStore.WebUI.Host\GraphQL\berry.json
with theGraphQL
endpoint at the Step 3 - Step 5: Run
CoolStore.WebUI.Host
at the debug mode, then we are ready to develop thepractical-dapr
project.
Happy hacking!