Deploying a Vue Application to AWS Using GitHub & the Amplify Console

nader dabit
Instructornader dabit
Share this video with your friends

Social Share Links

Send Tweet
Published 6 years ago
Updated 4 years ago

In this video we learn how to deploy & host a Vue 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 start by kicking off the new Vue application by running the vue create command. Next, we'll change into the new directory and initialize the Git repository. Now, we'll go to our GitHub account and create a new repository to hold the new application.

[00:42] Once the application has been created, I'll copy the link to the repo to my clipboard. In our Vue project, we'll set the origin using the repo we just created. Next, we'll add all of the files in our project, create a commit message, and push the project to the new GitHub repo.

[01:14] Now, we'll open the AWS console and search for AWS Amplify. In the Amplify console, click the connect app button. Here, we'll choose GitHub as the repository service we'd like to use. Once we've authorized with GitHub, we should now see a list of all the available repositories in our account.

[01:48] Choose the master branch of the new application we just created and click next. Accept all of the default build settings and click next. Now, you can review the details of your application and then click save and deploy.

[02:18] Once the application has been successfully deployed, you should now be able to click the link in the Amplify console to view the application. Next, let's make some changes to our app. I'll open the Vue project in the text editor and update the hello world .vue component.

[02:44] Here I'll change the heading to be "Hello From Amplify." I'll then go back to the terminal and update the Git repository with the new changes. When we push an update to master, we'll automatically kick off a new build in the Amplify console.

[03:15] Once the build has completed successfully, we should now be able to click the link in the console and view the new version of the application.

egghead
egghead

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