You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: daprdocs/content/en/js-sdk-docs/_index.md
+31-1Lines changed: 31 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,15 +9,45 @@ no_list: true
9
9
10
10
The Dapr JS SDK will allow you to interface with the Dapr process that abstracts several commonly used functionalities such as Service-to-Service invocation, State Management, PubSub, and more.
11
11
12
+
## Installation
13
+
14
+
To get started with the Javascript SDK, you can download the Dapr Javascript SDK package from [NPM](https://npmjs.org/package/dapr-client) by running the following:
15
+
16
+
```bash
17
+
npm install --save dapr-client
18
+
```
19
+
20
+
## Structure
21
+
22
+
The Dapr Javascript SDK contains two major components:
23
+
24
+
***DaprServer:** The Dapr Server manages all communication from the Dapr Sidecar to your application
25
+
***DaprClient:** The Dapr Client manages all communication from your application to the Dapr Sidecar
26
+
27
+
The above communication can be configured to use either of the gRPC or HTTP protocols.
28
+
29
+

30
+

31
+
32
+
## Get Started
33
+
34
+
To help you get started, check out the resources below:
12
35
13
36
<divclass="card-deck">
14
37
<divclass="card">
15
38
<div class="card-body">
16
39
<h5 class="card-title"><b>Client</b></h5>
17
-
<p class="card-text">Create a JavaScript client and interact with a Dapr sidecar and other Dapr applications.</p>
40
+
<p class="card-text">Create a JavaScript client and interact with a Dapr sidecar and other Dapr applications. (e.g., publishing events, output binding support, etc.)</p>
<p class="card-text">Create a JavaScript server and let the Dapr sidecar interact with your application. (e.g., subscribing to events, input binding support, etc.)</p>
0 commit comments