mirror of https://github.com/dapr/quickstarts.git
* Change all references of app-id in bindings examples to batch-* Signed-off-by: Nick Greenfield <nigreenf@microsoft.com> * fix typo Signed-off-by: Nick Greenfield <nigreenf@microsoft.com> * Add bindings test for GH e2e Signed-off-by: Nick Greenfield <nigreenf@microsoft.com> * Fix name of workflow Signed-off-by: Nick Greenfield <nigreenf@microsoft.com> * Fix GH e2e tests and fix GO http test Signed-off-by: Nick Greenfield <nigreenf@microsoft.com> |
||
|---|---|---|
| .. | ||
| batch | ||
| README.md | ||
| makefile | ||
README.md
Dapr Bindings (HTTP)
In this quickstart, you'll create a microservice to demonstrate Dapr's bindings API to work with external systems as inputs and outputs. The service listens to input binding events from a system CRON and then outputs the contents of local data to a PostreSql output binding.
Visit this link for more information about Dapr and Bindings.
Note: This example leverages only HTTP REST. If you are looking for the example using the Dapr SDK click here.
This quickstart includes one service:
- Python service
batch
Run and initialize PostgreSQL container
- Open a new terminal, change directories to
../../db, and run the container with Docker Compose:
cd ../../db
docker compose up
Run Python service with Dapr
- Open a new terminal window, change directories to
./batchin the quickstart directory and run:
cd ./batch
pip3 install -r requirements.txt
- Run the Python service app with Dapr:
dapr run --app-id batch-http --app-port 50051 --components-path ../../../components -- python3 app.py