Skip to content

d0ruk/serverless-notes-app

Repository files navigation

An implementation of the Serverless Stack demo app.

Required;

Usage

Backend

  > yarn
  > sls deploy # alternatively, sls deploy -r us-west-2 -s canary

To test the Cognito/API Gateway integration, create a cognito user as shown here, and run apig-test.js with the details of the created user. (edit userDetails)

Frontend (client/)

> yarn
> yarn start

Offline

  • sls invoke local -f create --path event.json
  • sls invoke local -f list --path event.json
  • sls deploy function -f delete

Notes

  • Every time a different stage (i.e. -s canary) is deployed, the output.json is overwritten with the latest stack output. Be mindful of what resources the client app is using. Either use the AWS console or do sls remove -s somestage to clean stale deployments.