INSTALL AND RUN VUE ON UBUNTU 19.04

Prerequisites: - Web server (Apache2)

Step #1: Install npm and vue by running: $ apt install npm $ npm install -g @vue/cli

Step #2: Add your project files on the server (ex. from GitHub using clone command) in this tutorial let's use a very simple vue app example and save the app in (ex. /var/www/vueapp):

$ cd /var/www/ $ vue create vueapp $ cd vueapp

Step #3: Run the server by run: $ npm run serve

Output:

App running at:
  - Local:   http://localhost:8080/ 
  - Network: unavailable

  Note that the development build is not optimized.
  To create a production build, run npm run build.

Navigate to xxx.xxx.xxx:8080 url (where xxx.xxx.xxx is server ip)