mirror of https://github.com/dapr/quickstarts.git
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com> |
||
---|---|---|
.. | ||
order-processor | ||
.gitignore | ||
README.md | ||
makefile |
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 runningorder-processor
service.
- Navigate to
order-updater
directory. - Check the
Readme
to start the app and keep it running in the terminal.
cd ./../../order-updater
go run .
- This will add configuration items to redis config store and keep updating their values.
Run order-processor
- Navigate to folder and install dependencies:
cd ./order-processor
npm install
- 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