This is in part summary of a YouTube video: link here
Question to start with: How do I run dynamoDB locally? I do not want to risk all my codes going into AWS and mess things up there (big aws charges).
Prerequisites
Clone this repo: https://github.com/SamWSoftware/ServerlessYoutubeSeries/tree/l19-serverless-offline
Once cloned, run the following commands in your working directory.
npm install
sls dynamodb install
this will create a local dynamodb instance in your working directory.
then run
sls offline start --stage dev
once done, use postman to test whether your local endpoint is connected to the dynamodb!!!
Top comments (0)