Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

Serverless component to send feedback about dev docs to SurveyMonkey

Notifications You must be signed in to change notification settings

box-devrel/documentation-feedback-serverless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Feedback Component for SurveyMonkey

Prerequisites

Install Node 8.10 and yarn:

nvm install 8.10
nvm use 8.10
npm install -g yarn
yarn install

Development

yarn test --watch # to watch all the tests
yarn lint --fix # to run the linter and fix the basics

Deployment

Do 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/prod
  • dev: https://fkzpk1kpt3.execute-api.us-east-1.amazonaws.com/dev

Testing locally

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 note

Testing remotely

yarn 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

About

Serverless component to send feedback about dev docs to SurveyMonkey

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published