Command line interface to control the node daemon.
Installation
#### Node.js
Node.js provides a general installation guide here but we will walk through the installation for Windows, Ubuntu, and macOS.
We based this application off of the latest branch (9.9.0) at the time of this writing.
Here are some shortcuts to commands
* Windows * Download Installer, here * Select the latest, 9.9.0+ * Ubuntu * curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash - * sudo apt-get install -y nodejs * Change Global Installation Directory * Our packages requires some dependencies that require superuser access if installed in the default Ubuntu paths. We recommend changing the default installation of global node modules to ~/.npm-global as stated in the npm.js docs. We included the commands below: * Run mkdir ~/.npm-global * Run npm config set prefix '~/.npm-global' * Add export PATH=~/.npm-global/bin:$PATH to your .profile of .zshrc file * Run source ~/.profile
* Another option is to use NVM to handle permissions. * macOS * Install Homebrew, instructions * /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" * brew install node
#### Git
* Windows * https://gitforwindows.org * Ubuntu * apt-get install git * macOS * Comes default with mac but can also be installed via Homebrew (brew install git)
#### Gladius CLI
* Run npm install -g gladius-edge-daemon
#### Gladius Control Daemon
* Run npm install -g gladius-control-daemon
#### Gladius Edge Daemon
* Run npm install -g gladius-edge-daemon
Setup
#### Gladius Control Daemon
* Run gladius-control to start the server * Expected Output: `` $ gladius-control Running at http://localhost:3000 ` * Leave this running in a new window for the CLI to communicate
#### Gladius Edge Daemon
* Run gladius-edge to start the server * Expected Output: ` $ gladius-edge Running - Use "gladius-node start" to start it ` * Leave this running in a new window for the CLI to communicate
#### Gladius CLI
- Set up a local static IP for the machine you will be running the Gladius node on - Forward port 8080 on your router to that machine - Create a new Ethereum wallet - Acquire 1 Ether on the Ropsten testnet (or go here if you're using Metamask) - Run gladius-node init and fill out the requested information (use the same email that you applied for the beta with)
After you execute a command it will suggest the next logical command. For example, after init you can run gladius-node create to create a new Node. As of now the Node manager only supports 1 Node per user therefore if you run gladius-node create multiple times you will keep overwriting your current node.
The gladius-cli acts as an interface for a user to interact with the gladius-control-daemon and the gladius-edge-daemon. Therefore, if you want to use the CLI you must have both of the daemons running either in the background or on seperate terminal windows. Both daemons run servers on your machine once you start them. If you no longer want them to be running simply exit the window or stop the processes. This will stop the servers and if you want to use the CLI you'll have to start them again.