quickstarts/bindings/javascript/sdk
Deepanshu Agarwal 48f2d58d7b just postgresql typo correction
Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>
2022-08-22 11:59:35 +05:30
..
batch Update JS-SDK package from dapr-client to @dapr/dapr (#710) 2022-07-20 16:43:22 -07:00
README.md just postgresql typo correction 2022-08-22 11:59:35 +05:30
makefile Binding quickstart - Cron input PostgreSQL output (#669) 2022-06-22 18:06:18 -07:00

README.md

Dapr Bindings (Dapr SDK)

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 PostgreSql output binding.

Visit this link for more information about Dapr and Bindings.

Note: This example leverages the Dapr SDK. If you are looking for the example using HTTP REST only click here.

This quickstart includes one service:

  • Javascript/Node.js service bindings

Run and initialize PostgreSQL container

  1. Open a new terminal, change directories to ../../db, and run the container with Docker Compose:
cd ../../db
docker compose up

Run Javascript service with Dapr

  1. Open a new terminal window, change directories to ./batch in the quickstart directory and run:
cd ./batch
npm install
  1. Run the Javascript service app with Dapr:
dapr run --app-id batch-sdk --app-port 5002 --dapr-http-port 3500 --components-path ../../../components -- node index.js