This example repo consists of two parts
yarn install
- If necessary, create a Private Key
- Create
.env
file in project and add the following contents to file:
API_KEY=<PRIVATE_KEY>
yarn test
yarn install
- If necessary, create a Public Key
- Open
static/configureVouched.js
- Replace
<PUBLIC_KEY>
with your Public Key
PORT=3000 node server.js
In a browser, head to http://localhost:3000/static/index.html to see the Vouched JS Plugin in action.
Feel free to modify any configurations in static/configureVouched.js
. Here is the full list of configuration options