-
Open the
services.jsonin the solution folder, then update the following settings"EnabledTye": false
-
Install Dapr by
dapr init -
After started infrastructure with the following command, It'll open web browser automatically with the dashboard at
http://127.0.0.1:8000/tye run .\tye-min.yaml --dashboard
-
Run the following commands in separate Windows Powershell
-
Start
products-apidapr run --app-id products-api --app-port 5001 --log-level debug ` --components-path .\components --config .\components\simplestore-dapr-config.yaml ` dotnet run dotnet -- -p src\Services\ProductCatalog\SimpleStore.ProductCatalogApi
-
Start
inventories-apidapr run --app-id inventories-api --app-port 5002 --log-level debug ` --components-path .\components --config .\components\simplestore-dapr-config.yaml ` dotnet run dotnet -- -p src\Services\Inventories\SimpleStore.InventoriesApi
-
Start
graphql-apidapr run --app-id graphql-api --app-port 5000 --log-level debug ` --components-path .\components --config .\components\simplestore-dapr-config.yaml ` dotnet run dotnet -- -p src\Services\GraphQL\SimpleStore.GraphQLApi
-
Notes:
-
Running this mode, we just use Tye as docker-compose to start infrastructure, i.e. seq and sqlserver
-
All services, they are,
graphql-api,products-api,inventories-apiwill be started withdapr runcommand with the predefined port as below- graphql-api:
http://localhost:5000 - products-api:
http://localhost:5001 - inventories-api:
http://localhost:5002
- graphql-api:
-
The port number is defined in
services.jsonand it's also passed todapr runcommands while starting services
-
Now, let open the
graphql-apiby clicking on the linkhttp://localhost:5000in the screenshot; then enjoy with some examples in here, for example




