Allows you to quickly and easily build, modify, and export a command tree that can be used with the Extensible Spark Bot
Created by gh-md-toc
- Standard - installing and running in a preconfigured environment
- Vagrant VirtualBox - build a new guest environment within VirtualBox
- Vagrant AWS - build a new guest environment within AWS
Use these commands if you already have an environment set up and just wish to install and run the Command Builder. For example you have a CentOS/Ubuntu VM or bare metal server.
- Node
- NPM
-
Clone git repository
git clone [email protected]:conmurphy/commandbuilder.git
-
Run commandbuilder.js
node commandbuilder.js
-
Open browser and navigate to address. e.g. http://localhost:3000
NOTE: The server listens on port 3000 by default
You can use Vagrant to build your environment for you. Two files have been included, one for a local Virtualbox install and the second for an AWS install.
- Vagrant
- VirtualBox
-
Clone git repository
git clone [email protected]:conmurphy/commandbuilder.git
-
Rename the VagrantFile_VB to Vagrantfile or make a copy named Vagrantfile
-
Bring up the environment
vagrant up
-
Log into the host
vagrant ssh
-
Change directory to
/opt/commandbuilder/commandbuilder
cd /opt/commandbuilder/commandbuilder
-
Run the Command Builder
node commandbuilder.js
-
Open browser and navigate to VM address. e.g. http://localhost:3000
NOTE: NPM may not install the packages correctly. If the worker fails on first try, change directory to /opt/commandbuilder/commandbuilder
and run npm install
NOTE: The server listens on port 3000 by default
You can use Vagrant to build your environment for you. Two files have been included, one for a local Virtualbox install and the second for an AWS install.
- Vagrant
- AWS account
- AWS access keys
- AWS Subnet ID
- AWS Security Group ID
- AWS Keypair - PEM file
-
Clone git repository
git clone [email protected]:conmurphy/commandbuilder.git
-
Rename the VagrantFile_AWS to Vagrantfile or make a copy named Vagrantfile
-
If you haven't already, create a new AWS Key Pair and download the file (.pem) to the current working directory
-
Create a new VPC and subnet as well as a security group if you haven't already. The security group should have port 22 SSH enabled inbound (Vagrant) as well as port 3000 inbound (Command Builder)
-
Fill in the Vagrantfile with your credentials, keypair name and the name of the
.pem
keypair file that you just downloaded -
Add the AWS subnet ID and AWS security group ID to the Vagrantfile.
-
Bring up the environment
vagrant up
-
Log into the host
vagrant ssh
-
Change directory to
/opt/commandbuilder/commandbuilder
cd /opt/commandbuilder/commandbuilder
-
Run the Command Builder
node commandbuilder.js
-
Open browser and navigate to VM address. e.g. http://aws-vm-address.us-west-2.compute.amazonaws.com:3000
NOTE: NPM may not install the packages correctly. If the worker fails on first try, change directory to /opt/commandbuilder/commandbuilder
and run npm install
NOTE: The server listens on port 3000 by default
File | Description |
---|---|
index.html | Main file containing HTML and Javascript functionality for Command Builder interface |
commandbuilder.js | NodeJS Express server used to serve files |
traverse.js | Functions used to validate and build tree on import |