Best local development workflow for the tutorial


#1

Hey guys - I have just completed the tutorial and love it!

What is the best local development workflow for the tutorial. It is important for me to be able to set up a local development environment that can be used offline. Has anyone setup an environment with the services used in the AWS tutorial:

  • Cognito
  • S3
  • API
  • Dynamo

I am guessing mocking out urls or event.requestContext.identity and possibly running localstack.

Any help would be greatly appreciated :slight_smile:


#2

Ok to answer my own question and for anyone that stumbles upon this looking for a quick setup, so you can run and debug the functions locally - this works:

I just used the data out of the mocks to post and retrieve notes - worked pretty easy.

There is also an example on https://github.com/serverless/examples/tree/master/aws-node-rest-api-with-dynamodb-and-offline (new members can only post 2 links) :frowning:


#3

Awesome! Thank you for sharing. We should turn this into a chapter for other folks!