registration/

directory
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2017 License: Apache-2.0

README

ChainOrchestra-SDK

Guest registration example

General design

This live event / hospitality sample application registers guests, online or at a desk, then let them checkin at a gate. The guest needs to checkout before unregistering.

In the blockchain DB, the user name is the key, the value of wich is either:

  • registered if the user is present in the DB but has not physically passed the gate
  • checked in if the user entered the event

The guest registration live demo page is on chainorchestra.net.

Desk operations

Blockchain users with DeskClerk permissions manage the register / unregister operations.

---- ---- ---- ---- ---- ----+---- ---- ---- ----+---- ---- ---- ---- ---- ---- 
     Initial state           |      Operation    |         Next state
---- ---- ---- ---- ---- ----+---- ---- ---- ----+---- ---- ---- ---- ---- ---- 
                             |                   |
     <undefined>             |      register     |         registered
                             |                   |
     registered              |     unregister    |         <undefined> 
                             |                   |
---- ---- ---- ---- ---- ----+---- ---- ---- ----+---- ---- ---- ---- ---- ---- 
 
Gate operations

Blockchain users with SecurityGuard permissions manage the checkin / checkout operations.

---- ---- ---- ---- ---- ----+---- ---- ---- ----+---- ---- ---- ---- ---- ---- 
     Initial state           |      Operation    |         Next state
---- ---- ---- ---- ---- ----+---- ---- ---- ----+---- ---- ---- ---- ---- ---- 
                             |                   |
     registered              |      checkin      |         checked in 
                             |                   |
     checked in              |      checkout     |         registered
                             |                   |
---- ---- ---- ---- ---- ----+---- ---- ---- ----+---- ---- ---- ---- ---- ---- 
 
Sample session
cd examples/registration/js/
./guestList.js 
./deskOperation.js register "John Doe"
./guestStatus.js "John Doe"
./gateOperation.js checkin "John Doe"
./guestStatus.js "John Doe"
./gateOperation.js checkout "John Doe"
./guestStatus.js "John Doe"
./deskOperation.js unregister "John Doe"
./guestList.js 
Sample Node-RED gateway flows

Copy the json samples in the flows folder to the ~/.node-red/lib/flows/ folder on your Node-RED gateway, then import them on the Node-RED web interface using the Import -> Library menu.

The flow samples are documented with the ChainOrchestra flow nodes.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL