A simple rest API for Tasks.
- npm run start-local
GET
- curl http://localhost:3000/tasks
- curl http://localhost:3000/tasks/2 PUT
- curl -X PUT -H "Content-Type: application/json" -d '{"description":"New Task Description","targetDate":"2024-02-20","isCompleted":false}' http://localhost:3000/tasks/1 POST
- curl -X POST -H "Content-Type: application/json" -d '{"description":"New Task","targetDate":"2024-02-22","isCompleted":false}' http://localhost:3000/tasks Delete
- curl -X DELETE http://localhost:3000/tasks/1
- ./prod-build.sh
- copy zip file from /prod-build/prod-build.zip into AWS Lambda.
- Create a new DynamoDB table:
- Name: my-task-dynamodb-table
- Partition key: id
- brew install jq
- curl .... | jq