Skip to content

inirudebwoy/dapr-pubsub-article

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DAPR playground

Code written for the article https://klichx.dev/?p=283

How to run the code

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages