Skip to content

Commit a20f27d

Browse files
committed
Updated readme with instructions on how to actually run the example.
1 parent 6217c8f commit a20f27d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/node-example/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,12 @@ This example exists as a minimal setup to get the FusionAuth Client working in t
1212
## Building
1313

1414
To build nodejs you will need to use `tsc`. This compiles the project to `build/example.js` and produces a sourcemap. You can then run this in nodejs.
15+
16+
Assuming you have node but not typescript installed, you can do the following (tested with node v12):
17+
18+
* `sudo npm install -g typescript # will install the `tsc` executable.`
19+
* `npm install @types/node --save-dev # solves the 'Build:Cannot find type definition file for 'node'' issue`
20+
* update the api key and FA location in `example.ts`
21+
* `tsc # compiles the typescript`
22+
* `node build/example.js # actually runs the code`
23+

0 commit comments

Comments
 (0)