In this lab, we do not have any code and just use the terminal! We will start dapr and get familiar with the dapr sidecar.
All applications that are used throughout the entire course are listed under Installs.
How complete the lab:
- Discover the CLI:
dapr -h
- Start the default Dapr setup:
dapr init
- Discover containers:
docker ps
- Discover created Dapr resources:
ls ~/.dapr
- Discover created Dapr resources using the Dapr dashboard:
dapr dashboard
- Start the sidecar:
dapr run --app-id blankapp --dapr-http-port 3000
- Use the sidecar to store information in the statestore component:
curl -X POST -H "Content-Type: application/json" -d '[{ "key": "name", "value": "Bruce Wayne"}]' http://localhost:3000/v1.0/state/statestore
- Retrieve stored information using the Dapr sidecar:
curl http://localhost:3000/v1.0/state/statestore/name
Done!