Remote Control App
Requirements
Node.js 8 (not higher) and npm
make
cmake
g++
You should create a new terminal session before following steps. The previous session you used has been customised for the DIGI toolchain and cannot be used to build a Node.js application.
Installation
install requirements
from the root of the project
dev-demos
install package
download and install latest Litecoin TestNet headers database (more information)
Run the application
set and export an environment variable with the information needed from the application. This information was prepared by the UniquID CLI when you run the
uniquid deploy aws
command. The information was stored on the file~/aws_device_cfg.json
Run the command:check the correct setup with:
start the application
deploy a contract between the board (provider) and the application (user) with the following functions enabled:
34 set led status (on/off)
35 read led status (on/off)
contract.jsoninteract with the device
if you are working on the EC2 instance
create a security group to open port
3000
open browser to
http://<ec2-ip-address>:3000
if you are working on your local machine
open your browser on
http://localhost:3000
Last updated