Deploying a React Application to AWS Using the Amplify Console

nader dabit
Instructornader dabit
Share this video with your friends

Social Share Links

Send Tweet
Published 5 years ago
Updated 3 years ago

In this video we learn how to deploy & host a React application on AWS using the Amplify Console. We also see how to do continuous deployment by kicking off new builds when changes are made to the master branch of our repository.

Instructor: [00:01] We'll first initialize a new React project by using Create React App. Next, we'll change into the new directory and initialize a Git repository. Next, we'll go into our Github account and create a new Github repository to hold our project.

[00:42] Once we've initialized the repository, we'll copy the link to our clipboard and go back to the command line. Next, we'll set the Git origin and push the code to our repo. Next, we'll open the AWS console and search for the AWS Amplify service. Here, we'll click get started to deploy a new project.

[01:24] For the repository service, we'll choose Github and then click next. Once we've authenticated with Github, we should now see a list of all of the available repositories in our account. Choose the repository we just created, the master branch, and then click next.

[01:47] We can accept all of the default app build settings, then click next, and then save and deploy. When the application is deployed successfully, you should now see a link in the amplify console that you can click to take a look at the new application.

[02:14] Next, let's make some changes to our application and then push the changes to the master branch to kick off a new build. To do so, open the project in your text editor and then open app.js. Here, I'll update line 11 to say, "Hello from Amplify."

[02:40] After the changes have been made, open your terminal and update the Git repository with the new changes. When we open the amplify console, we should now see that a new build has been kicked off. When the build is completed successfully, we should now be able to click on the link and view the new version of the application.

egghead
egghead
~ 2 hours ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today