Skip to content

Latest commit

 

History

History
49 lines (41 loc) · 2.76 KB

README.md

File metadata and controls

49 lines (41 loc) · 2.76 KB

serverless-app

App pushes POST payload to google spreadsheet.

Stack:

how

YouTube Video

How to setup AWS side.

how AWS YouTube Video

How to setup:

  • AWS # https://console.aws.amazon.com/console/home
  • Install Node.js https://nodejs.org/en/
  • npm install serverless -g
  • Follow video to get credentials: AWS credential setup for Serverless
  • It should lead to: serverless config credentials --provider aws --key <...AKIAIOSFO..> --secret <....EMI/K7MDENG/bPxRfiCYE...>
  • Setup your app in users/config/default.js
    • serviceKey it's Service Account follow this instructions
    • spreadsheet key should be docs.google.com/spreadsheets/d/11Sso5yOjzpF_xxxxV1f24IWwjVl5uZMDNXlbtmXIBFc/edit#gid=0
      • Make sure that you have JSON column in the google spreadsheet. (First line of spread sheet)
      • If you need separated fields in the google spreadsheets like firstName, lastName, email just add column names
  • Install dependencies cd users && npm install
  • Deployment: cd users && serverless deploy
  • It will give you endpoint to POST
    • for ex. https://j66dyaz0de.execute-api.us-east-1.amazonaws.com/dev/users
  • Now you can post and payload will be saved into JSON column.
  • To see logs: serverless logs -f users-create

Docker way (OS isolated)