One of the things I ask all the engineers on my teams to do as part of their onboarding (and a part of ongoing team collaboration) is to “eat your own dogfood.”

What that means for my AWS Amplify is they’re asked to create their own application and use the products/services we build and maintain every day as a user would.

This builds empathy, understanding, and helps with a baseline understanding of the wide variety of ways customers use the products and services.

My kids have recently shown an interest in coding as they’ve observed the countless hours I spend at the computer while we’re all in quarantine together, so I decided to build a very simple project for them and their devices.

Separately, our family is pretty big on sharing quotes and thoughts on inspirational characters or people and so we regularly share quotes at breakfast or dinner. That led to a pretty simple project of displaying a random quote on a single-page-app and then hosting it on Amplify Console under my domain, using the Amplify CLI Hosting Plugin.


Build the App

Start with a very simple react app with @material-ui/core for some simple components.

Next, thanks to akhiltak we can use akhiltak/inspirational-quotes as our data source for this quotes app.

Now we’ve got our simple App.js


AWS Amplify

First, make sure you have installed Amplify CLI and setup an AWS profile: https://aws-amplify.github.io/docs/js/cli

Initialize Amplify

You can use a global AWS profile, or simply use Access Keys for a specific application, then Amplify will now provision our resources.

Adding Hosting

Finally, we’ll see our Console pipeline, and be ready to have CI/CD integrated directly with the repository.

Voila!

https://master.d1tgxjn5m9peir.amplifyapp.com/