Install Node 8.10 and yarn:
nvm install 8.10
nvm use 8.10
npm install -g yarn
yarn installyarn test --watch # to watch all the tests
yarn lint --fix # to run the linter and fix the basicsDo not deploy from a local device. Instead let Travis do all deployment.
The master branch is automatically deployed as the prod stage, and the
develop branch is deployed as the dev stage.
Currently, the URLs for both these stages are:
prod:https://hubzs7tts2.execute-api.us-east-1.amazonaws.com/proddev:https://fkzpk1kpt3.execute-api.us-east-1.amazonaws.com/dev
This does post to an actual response!
yarn invoke:local:short # writes a short yes/no response
# for the next two, you will need to update the short.update.json
# and long.json samples with the ID from the response above
yarn invoke:local:update # updates the yes/no response
yarn invoke:local:long # updates the yes/no response with name, email, and noteyarn invoke:short # writes a short yes/no response
# for the next two, you will need to update the short.update.json
# and long.json samples with the ID from the response above
yarn invoke:update # updates the yes/no response
yarn invoke:long # updates the yes/no response with name, email, and note