Book Image

Rapid Application Development with AWS Amplify

By : Adrian Leung
Book Image

Rapid Application Development with AWS Amplify

By: Adrian Leung

Overview of this book

AWS Amplify is a modern toolkit that includes a command line interface (CLI); libraries for JS, iOS, and Android programming; UI component libraries for frameworks like React, Angular, and Vue.js for web development, and React Native and Flutter for mobile development. You'll begin by learning how to build AWS Amplify solutions with React and React Native with TypeScript from scratch, along with integrating it with existing solutions. This book will show you the fastest way to build a production-ready minimum viable product (MVP) within days instead of years. You'll also discover how to increase development speed without compromising on quality by adopting behavior-driven development (BDD) and Cypress for end-to-end test automation, as well as the Amplify build pipeline (DevOps or CI/CD pipeline) to ensure optimal quality throughout continuous test automation and continuous delivery. As you advance, you'll work with React to determine how to build progressive web apps (PWAs) with Amplify and React Native for cross-platform mobile apps. In addition to this, you'll find out how to set up a custom domain name for your new website and set up the AWS Amplify Admin UI for managing the content of your app effectively. By the end of this AWS book, you'll be able to build a full-stack AWS Amplify solution all by yourself.
Table of Contents (14 chapters)
Section 1: Getting Ready
Section 2: Building a Photo Sharing App
Section 3: Production Readiness

Chapter 2: Creating a React App with AmplifyJS and TypeScript

Now that we've familiarized ourselves with the Amplify CLI and Amplify Console, in this chapter, we will build a simple to-do app with TypeScript (TS) without writing much code. The idea is for you to get used to transitioning to TypeScript if you have not used it already. TypeScript is based on the concept of Strongly Typed, which means you can avoid a lot of runtime errors compared to using JavaScript (JS). This is because the transpiler (TS will get transpiled into JS, so it is not a compiler) will give you errors and warnings during transpilation when the types don't match.

The main reason we're following this to-do example is to give you an idea of how quickly we can build a basic React app with data input, store and retrieve data on DynamoDB, create the latest API 4.0 (GraphQL), and use Function as a Service (FaaS) and NoOps. That is all you need to create your next interactive prototype for user...