Installing and Running 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: Adding your project files to the server (e.g. from GitHub using clone
command) In this tutorial, we’ll use a simple Vue app example and store the application accordingly (ex. /var/www/vueapp
):
$ cd /var/www/
$ vue create vueapp
$ cd vueapp
Step #3: Start the Server by runnnig: $ npm run serve
Output:
App running at:
- Local: http://localhost:8080/
- Network: unavailable
This is a development version.
For a production-ready version, use npm run build
Navigate to xxx.xxx.xxx:8080 url (where xxx.xxx.xxx is server ip)