quickstarts/configuration/javascript/sdk
Sarthak Sharma eb05e090d2 add javascript example
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
2022-11-11 01:24:56 +05:30
..
order-processor add javascript example 2022-11-11 01:24:56 +05:30
.gitignore add javascript example 2022-11-11 01:24:56 +05:30
README.md add javascript example 2022-11-11 01:24:56 +05:30
makefile add javascript example 2022-11-11 01:24:56 +05:30

README.md

Dapr Configuration API

In this quickstart, you'll create a microservice which makes use of Dapr's Configuration API. Configuration items are key/value pairs containing configuration data such as app ids, partition keys, database names etc. The service gets configuration items from the configuration store and subscribes for configuration updates.

Visit this link for more information about Dapr and Configuration API.

This quickstart includes one service:

  • Node service order-processor

Run order-updater app

Note: order-updater app adds configuration items to the configuration store and keeps updating their value to simulate dynamic changes to configuration data. You need to start and keep it running before running order-processor service.

  1. Navigate to order-updater directory.
  2. Check the Readme to start the app and keep it running in the terminal.
cd ./../../order-updater
go run .
  1. This will add configuration items to redis config store and keep updating their values.

Run order-processor

  1. Navigate to folder and install dependencies:
cd ./order-processor
npm install
  1. Run the Node app with Dapr:
cd ./order-processor
dapr run --app-id order-processor --components-path ../../../components/ --app-protocol grpc --dapr-grpc-port 3500 -- node index.js