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: packages/rsocket-examples/src/webpack/browser-bundle/README.md
+38
Original file line number
Diff line number
Diff line change
@@ -26,3 +26,41 @@ __index.html__
26
26
Note: `index.html` does not show how to load the built `rsocket.js` file as that will be up to you/your implementation to decide.
27
27
28
28
Note: when running the `serve` npm script webpack will automatically host the `index.html` file and inject the `rsocket.js` script into the `<head/>` block.
29
+
30
+
## Run the server
31
+
32
+
**Open a terminal:**
33
+
34
+
Open a terminal in the `simple/server` directory one level up from this README.
35
+
36
+
**Install dependencies:**
37
+
38
+
```bash
39
+
npm install
40
+
```
41
+
42
+
**Run the server:**
43
+
44
+
```bash
45
+
npm run start
46
+
```
47
+
48
+
## Run the client
49
+
50
+
**Open a terminal in this folder and install dependencies:**
51
+
52
+
```bash
53
+
npm install
54
+
```
55
+
56
+
**Run the NPM server script:**
57
+
58
+
```
59
+
npm run serve
60
+
```
61
+
62
+
The above script will run the webpack dev server, which will first compile the "app" and then host the index.html.
0 commit comments