Code written for the article https://klichx.dev/?p=283
In one terminal
cd producer
pipenv install
dapr run --app-id order-processor --components-path ../components/ --app-port 8000 -- uvicorn app:app
In another terminal
cd consumer
pipenv install
dapr run --app-id order-processor --components-path ../components/ --app-port 8001 -- uvicorn app:app --port 8001
Then make a call to the producer.
curl -X POST -H "Content-Type: application/json" -d '{"product": "falafel"}' http://localhost:8000/orders