Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 640 Bytes

File metadata and controls

56 lines (37 loc) · 640 Bytes

NodeJS Example Project

Setup

From the root of this repository, Build the @dfinity/response-verification package:

./scripts/package.sh

Link @dfinity/response-verification globally:

pushd ./pkg && sudo npm link && popd

Change into this project's directory:

cd examples/nodejs

Install NPM modules:

npm install

Link @dfinity/response-verification in this project:

npm link @dfinity/response-verification

Run with TSNode

Run:

npm start

Run with Node

Compile TypeScript:

npm run build

Run:

node ./dist/index.js