- Install Node.js (https://nodejs.org/en).
- Run "node -v".
- The Browser SDK and Sample App should be tested and run on the latest Node.js version.
(Run Server and launch Sample App Menu)
- Open terminal from the extracted directory (this directory).
- Run "npm install".
- Run "npm run facetec-browser-sdk". a. If your Browser does not open automatically, navigate to "localhost:8000".
(Build the Sample App itself)
- For the TypeScript Sample App, open a new terminal in sample-apps/sample-app-ts/.
- Follow the steps in that directory's README (summarized below for convenience):
a. Run "npm install".
b. Run "npm run build" (compiles the typescript files into the ./build folder).
- Terminal is left running after "Build: 1 SampleApp.js Completed" is reached.
- Select "Sample App TS" from the main menu on localhost:8000.
- "npm install" hangs on Windows.
a. If the install hangs on Windows, temporarily turn off IPv6.
- Go to Control Panel->Network and Internet->Network and Sharing Center.
- Click "Change Adapter Settings".
- Right click your connected network and choose Properties.
- Uncheck the box next to Internet Protocol Version 6 (TCP/IPv6).
- Close command prompt and reopen a new command prompt in the extracted directory.