-
Open the
services.json
in 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-api
dapr 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-api
dapr 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-api
dapr 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-api
will be started withdapr run
command 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.json
and it's also passed todapr run
commands while starting services
-
Now, let open the
graphql-api
by clicking on the linkhttp://localhost:5000
in the screenshot; then enjoy with some examples in here, for example