quickstarts/state_management/javascript/http
amulyavarote b34575e9d7
Changed loop from while to for (#537)
* Changed loop from while to for

Signed-off-by: Amulya Varote <amulyavarote@QTM-SWATHIKIL-1.redmond.corp.microsoft.com>

* Removed random imports

Signed-off-by: Amulya Varote <amulyavarote@QTM-SWATHIKIL-1.redmond.corp.microsoft.com>

Co-authored-by: Amulya Varote <amulyavarote@QTM-SWATHIKIL-1.redmond.corp.microsoft.com>
2022-02-17 11:52:39 -08:00
..
order-processor Changed loop from while to for (#537) 2022-02-17 11:52:39 -08:00
.gitignore State Management quickstarts examples added. (#528) 2022-02-14 15:57:16 -08:00
README.md State Management quickstarts examples added. (#528) 2022-02-14 15:57:16 -08:00

README.md

Dapr state management (HTTP Client)

In this quickstart, you'll create a microservice to demonstrate Dapr's state management API. The service generates messages to store data in a state store. See Why state management to understand when this pattern might be a good choice for your software architecture.

Visit this link for more information about Dapr and State Management.

Note: This example leverages HTTP requests only. If you are looking for the example using the Dapr Client SDK (recommended) click here.

This quickstart includes one service:

  • Node client service order-processor

Run Node service with Dapr

  1. Open a new terminal window and navigate to order-processor directory:
cd order-processor
  1. Install dependencies:
npm install
  1. Run the Node service app with Dapr:
dapr run --app-id order-processor --components-path ../../../components/ -- npm start