Coder Social home page Coder Social logo

monbee's Introduction

monBee

An Ethersphere Bee node monitor written in JavaScript for node.js

Installing packages

To get started the following commands, or their equivalents, should work if you don't already have node and/or npm

sudo apt-get install nodejs

sudo apt-get install npm

Or for Windows or macOS, https://nodejs.org/en/download/

You'll also need git to clone this repository: https://git-scm.com/download/win

Installing dependencies

Then the following command should install the needed dependencies when executed in the cloned directory.

npm i

monBee uses blessed for drawing its TUI (Text User Interface)

monBee uses axios to communicate to bee's Debug API (to be converted to bee-js)

monBee will eventually use @ethersphere/bee-js instead of axios

Running

Finally, to run monBee, use the following command in a shell or command prompt window:

node monBee.js

This will default to monitoring the bee node whose Debug API is at http://localhost:1635

To monitor other, or even multiple, bee nodes, use:

node monBee.js http://localhost:1635 http://localhost:1638 http://192.168.10.177:1635

If you want monBee to cashout any discovered cashable checks, add --cashout anywhere on the command line.

If you add --debug and 2>monBee.err to the command line, any errors or debug logs will be written to monBee.err to subsequently provide to the developer.

Diagnosing

I've included several short JavaScript programs to help diagnose installation issues.

node monRequires.js - Will verify that the necessary dependencies are available

node monBox.js - Will verify that blessed TUI is working properly

node monJSTest.js - Will verify bee-js minimum operation

Manual Dependencies

If "node monRequires.js" shows errors even after "npm i" was executed, try these:

npm install axios

npm install blessed

npm install @ethersphere/bee-js

Disclaimer

Note: This is my first-ever github repository and public release of an open-source project. I am NOT a JavaScript programmer, but ported my lua/moai code to node.js so that it can be more easily used (and hopefully expanded) by others.

Warning

Just don't run monBee for a long time if you use infura.io's free account as your swap-endpoint because monBee refreshes every minute and will eat up your 100,000 API hits in short order. No gETH, but every query is counted at infura.io.

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.