Code Monkey home page Code Monkey logo

holo-monitor's Introduction

Holo Monitor

Note: You would need some keys to deploy or test this service

The Holo Monitor keep track of when a hosts enable or disable an app for hosting my hosting device is automatically registered/deregistered with this Holo centralized services

How To

NodeJS App

  • clone the repo to your local machine
  • run npm install
  • run nix-shell
  • For running on a server:

npm start

Lets run tests:

We need to install the node modules

  • npm install

Enter Nix Shell

  • nix-shell

Now lets preload the HHA DNA with apps

  • npm run test:setup

Now lets run the holo-monitor once This is to check if we get any enabled apps from the DNA You should have the DNA pass an empty array

  • npm run once

Now lets enable all the apps that we just registered in the DNA

  • npm run test:enable-happs

Lets call the holo-monitor once Expectation: you need to get the the enabled apps which would update the kv store

  • npm run once

Check the kv store Expectation: The kv store should have 2 happs and one host for each happ

  • npm run test:get-kv

Now lets disable all the apps that we just registered in the DNA

  • npm run test:disable-happs

Lets call the holo-monitor once Expectation: you need to get the the disabled apps which would update the kv store

  • npm run once

Check the kv store Expectation: The kv store should have 2 happs and 0 host for each happ

  • npm run test:get-kv

NOTE: If you are unclear about how to get the keys to work, just look in the code.

Reference Doc

holo-monitor's People

Contributors

zo-el avatar paulbhartzog-holo avatar pjkundert avatar

Stargazers

 avatar  avatar

Watchers

Eric Harris-Braun avatar Mamading Ceesay avatar Arthur Brock avatar  avatar Paul d'Aoust avatar Micah J avatar James Cloos avatar Chris Gagne avatar Luka Teras avatar Zeeshan Abid avatar Willem Olding avatar Mary Camacho avatar Drew Casey avatar Patrick Winfield avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.