Prerequisites:
- Local install of Docker.
- Local install of the aws-cli
Note, if using Windows, this has only been tested in WSL environments.
- Start local dynamodb container
docker run -p 8000:8000 amazon/dynamodb-local
- Copy Environment default environment variable assignments to
.env-development
:
cp .env.template ./.env.development
- Initialze database:
node utils/setupDb.js
(you may want to list tables with aws cli at this point*)
Will be useful to develop tests that can load user data. - Start node app:
node app.js
*Listing local dynamodb tables with aws cli
aws dynamodb list-tables --endpoint-url http://localhost:8000