Tool to develop and test script steps for the tray.io platform.
- Download repo.
- Install Homebrew
xcode-select --install
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
brew doctor
- Install NPM/Node
brew install node
- Install other dependencies
npm install mout
npm install lodash
npm install moment
npm install request
- Open ‘index.js’ and ‘script.js’ in separate text editors.
- Paste the literal INPUT from a Script step in the logs into the ‘input’ file.
- Paste your full Script into the ‘script’ file.
- Navigate to the tray-script-tester folder in terminal, and type ‘node run.js’. It will execute your code and show you the output that you would expect to see in the Tray builder.