Uses
Requires:
- Everything needed to run AWS SAM locally as described here.
- Also that requires docker.
- Install and run this DynamoDB image.
- Create a docker network:
docker network create aws-local-networkThe scripts use that network to connect the lambda docker container that SAM uses and DynamoDB container locally.
bash dbstart.shSee script that starts docker, starts already installed DynamoDB container, and runs node script to create table and populate it with data.
npm watchnpm apinpm testRequires that a local server running with DynamoDB up and populated. See above.
npm integrationnpm proxyThen use that IP address. Docker has problems using an IP address locally, so throw a proxy server up locally in front for things like testing locally with your React Native App.
Use Code Pipeline etc as described here to automate depoyement when you push to a branch in GitHub/your repo.
- Config swtich db local/prod using like environmental variables.
- Security and Auth/authorization.