tutorials questions & answers

INSTALL AND RUN VUE ON UBUNTU 19.04

TAGS:
  • javascript
  • vue
  • framework
  • ubuntu
  • install
  • configrue
  • run
  • vps
  • server
  • vpsserver

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)

comments (0)

    leave comment

    Please choose login or register to comment in this thread.

    Start now for as low as $4,99 a month!

    • 8 Characters2
    • 1 Uppercase Atleast
    • 1 Number Atleast