NPM SERVERLESS DYNAMODB CLIENT HOW TO
It'll ask a series of questions to determine how to create the database. Now you should see DynamoDB database wizard. We do not have an existing DynamoDB table so we will choose the Create a new DynamoDB table option. The next prompt asks you to choose a DynanoDB data source.This creates an architecture using API Gateway with Express running in an AWS Lambda function that reads and writes to Amazon DynamoDB. Choose the option CRUD function for Amazon DynamoDB table (Integration with Amazon API Gateway and Amazon DynamoDB) and press Enter.
NPM SERVERLESS DYNAMODB CLIENT CODE
Follow the instruction below to create the serverless backend. We will use a REST API with a NoSQL database. The application we’re going to build will allow users to perform basic CRUD operations. Then we will consume this API from the React project.
In this post, we will use the Amplify CLI to provision a secured backend API and a NoSQL database. We bootstrapped a React project and added the Amplify library to it. In a previous post, we looked at what serverless is, and we set up our computer to be able to build serverless applications using AWS Amplify. Serverless is a cloud-computing execution model in which the cloud provider is responsible for executing a piece of code by dynamically allocating resources to run the code when needed. By Peter Mbanugo Going serverless with React and AWS Amplify Part 2: Creating And Using Serverless Services