Skip to content

How to Deploy Vue Js App on AWS EC2

Shanaya Saxena 1 min read
deploy vue app

Introduction

Vue is a progressive web application framework, that helps you make advanced interactive web applications quickly.

But, once a Vue app is developed, developers face problems publishing the app on the server.

In this article, we’ll cover how we can publish our Vue app to AWS EC2 instance for free.

#1 Configure Apache Server on EC2

Amazon Web services(AWS) is one of the most popular cloud services providers.

After creating an account, you get a free 1 year trial on AWS to explore and test it out.

Update Dependencies

sudo apt update

Install Apache

sudo apt install apache2
sudo ufw app list
sudo ufw allow 'Apache'
sudo ufw status
sudo systemctl status apache2

Now open the Public IP address provided in your browser

#2 Install Node Js and NPM

sudo apt install nodejs

Verify the installation and check node version

node -v

Install NPM to run commands

sudo apt install npm

Other Platforms For Deploying Vue Js Apps

  1. Netlify
  2. Github pages
  3. Heroku

You May Also Like –

Shanaya Saxena

Empowering Developers with Years of Coding Experience