Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.05 KB

README.md

File metadata and controls

43 lines (35 loc) · 1.05 KB

iotapp-home-security-dapp

Install Dependencies

npm install

Project Setup

In the HelloWorld.vue file (around line 107), add your channel API keys to the API functions. Then, around line 154, add your API keys to the pollData() function.

Examples

    iotapp.getPrivateChain("myOz8FZXhT4lBzJplmXtUbneP8eeXpSp","3imNnMduakmu6JmFafIxnu8WJj28BjQI")

    iotapp.getLatestTx("myOz8FZXhT4lBzJplmXtUbneP8eeXpSp","3imNnMduakmu6JmFafIxnu8WJj28BjQI")
    pollData() {
      this.polling = setInterval(() => {
        iotapp.getLatestTx("myOz8FZXhT4lBzJplmXtUbneP8eeXpSp", "3imNnMduakmu6JmFafIxnu8WJj28BjQI")
          .then((data) => (this.latestData = data))
          .catch((err) => console.log("Error occurred:", err));
      }, 2000);
    },

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.