After testing that the APIs work properly with Postman, we will test the APIs that are called with the front-end built from part 2.
Open API Gateway console and go to Stages, copy the Invoke URL

Open config.js file in fcj-serverless-frontend folder

Open App.js file in fcj-serverless-frontend/src/

Run the following commands to build and deploy to S3:
npm run build
aws s3 cp build s3://fcj-book-shop-tranvix --recursive
Check S3 bucket, the build files have been uploaded

Paste the S3 static web endpoint into your browser. The app already shows the book information, but still no pictures because we haven’t uploaded the pictures yet

So the listing API is working properly.
Click on Management tab and click Update button on a book

In the Update form:

Display message Book update successful!

Image and information updated successfully

Click on Create new book tab to write new data to the database:

Display message Book upload successful!

Newly created book is displayed on Home page

Click on Management tab and click Update button on the book you want to delete

Click Delete button

Click OK to confirm deletion

Display message Book delete successful!

View results after deleting: the book no longer appears

We have finished building a simple web application following the serverless model. To build serverless applications faster, in the next section we will use AWS Serverless Application Model (SAM). SAM provides syntax to express functions, APIs, databases, and event source mappings.