Skip to content

quick start

Nick edited this page Mar 21, 2022 · 13 revisions

This page is designed to provide a quick start in using the Token Negotiator, with the demo examples.

Before following these steps, please ensure you have Node Js installed on your computer (https://nodejs.org/).

This guide will provide two working versions of how Token Negotiation can be done (served on your local computer).

1. First download this repository which contains various examples and the source code

https://github.com/TokenScript/token-negotiator-examples

example websites:

  • hotel-bogota-active-negotiation-website (example website)
  • hotel-bogota-passive-negotiation-website (example website)
  • ticket-issuer-website (example website)

**2. Next at the root of the examples

run npm i to install dependancies. run npm run install to install dependancies. run npm run start to start the examples (across many localhost ports).

3. First, navigate to the ticket issuer example in a browser and select a token

This emulates 'magic link' and stores a token locally in your browser.

4. Refresh the page and you should now see the selected token/ticket in view

5. Next, navigate to the hotel bogota examples and interact with the website to see how the token can be applied

Usage

NPM Package

Support

[email protected]

We look forward to hearing your feedback.

Clone this wiki locally