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: examples/rest-api/README.md
+12-6Lines changed: 12 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,21 @@
2
2
3
3
This example shows how to build a generic Rest API module for NuclearJS's flux architecture.
4
4
5
-
## Running the example
5
+
## Running
6
6
7
-
The built files are already checked in, simply open `index.html` to see the example. Make sure you open the console to see the actions being dispatched.
7
+
You must have [npm](https://www.npmjs.org/) installed on your computer.
8
+
From the root project directory run these commands from the command line:
8
9
9
-
**To watch/rebuild**
10
+
`npm install`
10
11
11
-
```sh
12
-
npm run watch
13
-
```
12
+
This will install all dependencies.
13
+
14
+
To build the project, first run this command:
15
+
16
+
`npm start`
17
+
18
+
After starting the watcher, you can open `index.html` in your browser to
0 commit comments