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

Sharing an image with text as a blog post with ReactJS

In this section, we will create a blog post with the code that we created in the previous section. Imagine that someone who has visited your website has signed up and logged in as a user and then thinks of something worth sharing. To do this, they must create a blog post. In this section, we will show you how the user will pick an image and then add a title and content, as well as click the Create button to ensure the functionalities are working perfectly. Let's get started:

  1. First, let's call the yarn start command in a Terminal to run the app. Try to create a new post by uploading a photo, fill in the title and content fields, and then click the Create button:

    Figure 6.1 – Uploading a photo during post creation

  2. You should be able to scroll down to the bottom of the page to check out the newly created post, as shown here:

Figure 6.2 – Newly created post with an image