Todo store using Amazon Lambda and DynamoDb table implemented in node.js.
Install Dependencies
$ brew install awscli
$ npm install
Once finished, run below command to configure AWS and enter the key
and secret
.
$ aws configure
Once done we're good to go.
Deploy the Lambda to AWS
$ sls deploy
There are 3 available services.
Get a particular todo
$ curl https://68ckadw01m.execute-api.us-east-1.amazonaws.com/dev/todos/24e6cba7-e18b-4dad-90b3-ddd3eee48e15
Get all todos
$ curl https://68ckadw01m.execute-api.us-east-1.amazonaws.com/dev/todos/all
Create a todo
$ curl -X POST https://68ckadw01m.execute-api.us-east-1.amazonaws.com/dev/todos --data '{"text": "Schedule meeting" }'