We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6217c8f commit a20f27dCopy full SHA for a20f27d
examples/node-example/README.md
@@ -12,3 +12,12 @@ This example exists as a minimal setup to get the FusionAuth Client working in t
12
## Building
13
14
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