This is a simple project created to test Serverless. This project has two endpoints:
-
Create TODO:
- POST: http://localhost:3000/dev/todos/{userid}
- body:
{ title: 'Task name', deadline: new Date(deadline) } -
List TODOs:
This project has been generated using the aws-nodejs-typescript template from the Serverless framework.
For detailed instructions, please refer to the documentation.
- Run
yarnto install the project dependencies - Run
yarn dynamo:startto run local dynamoDB - In new terminal, run
yarn devto run serverless on localhost
Done. You can test application with Insomnia (or similar).