Creating ToDo Application with Serverless Application Repository
- Login to AWS console and search for Lambda service
- Now create click on Create Function
- Click on AWS Serverless Application Repository
- Now search for todo and click on serverless-todo
- Scroll down and click on Deploy
- Once the application is deployed, click on Test app
- Click on API Endpoint this will launch your ToDo serverless application
- Voila! your application is here!
- Now, have a lookup at the architectural diagram of this applicaiton, when you clicked on deploy it deployed API gateway, Lambda and DynamoDB
API Gateway: This enables frontend to backend thats our lambda function
Lambda: Holds the logic to talk to dynamodb for get and put of ToDo tasks
Dynamodb: It holds the ToDo data which users enters from UI - Go to Lambda to see the backend login of this application
- The NodeJS code
- DynamoDB
- Now from the frontend lets input a task
- Now check the attribute inside your DynamoDB table, you should be able see UI task inputted to DynamoDB
- Now to delete this application, go to cloudformation service and delete the stack