A quick demo built up with coap-shepherd.
Here is a quick demo app that show you what coap-shepherd can do, e,g,. allow devices to join, control devices. You can use this quick demo as a basis to create your own CoAP Web Application.
$ git clone https://github.com/tosscaster/coap-server.git
$ cd coap-server
/coap-server $ npm install
Just need to type npm start in the console, server will start running.
/coap-server $ npm start
When you first press the PERMIT JOIN button, server will create a few fake peripherals, used to display some simple applications. During this period, the real peripheral device can not join the network until the end of the first permit join.
The following figure shows the entire process from server startup to the first permit join end.