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

Launching the React Native and Expo apps

For the Expo project, we will test the web, iOS, and Android versions:

  1. Let's test out the web version first by entering the yarn web command in a Terminal:

    Figure 2.8 – The Expo CLI will show you the local URL and open it in your browser

  2. A browser will open. It will start the metro builder and compile the web version of the app:

    Figure 2.9 – Compiling the web version of the app

  3. Once the compilation is complete, a new tab will open in your browser automatically. You will see that the app is running, as shown in the following screenshot:

Figure 2.10 – The Expo to-do app running in a browser

As you can see, the styling of the Expo and React Native apps has been optimized for mobile, so the button and the input fields have been stretched across the screen. If you want to make this look nicer, you can add a fixed width for the button and input fields. Let's press Ctrl + C in...