Difference between revisions of "Install vue linux"

(Created page with "* Introduction Vue installation procedure for Linux (tested on CentOS) * Install git <syntaxhighlight lang="bash"> sudo su -l root yum install -y git </syntaxhighlight> * Vu...")
 
 
Line 1: Line 1:
 
* Introduction
 
* Introduction
Vue installation procedure for Linux (tested on CentOS)
+
Vue installation procedure for Linux (tested on CentOS).
 +
See also other documentation: [[ART-DECOR_building_and_testing]]
  
 
* Install git
 
* Install git

Latest revision as of 10:16, 28 July 2021

  • Introduction

Vue installation procedure for Linux (tested on CentOS). See also other documentation: ART-DECOR_building_and_testing

  • Install git
sudo su -l root
yum install -y git
  • Vue repo initial clone
mkdir /opt/art-decor-vue; cd /opt/art-decor-vue
git clone https://bitbucket.org/art-decor/art-decor.git
cd art-decor
  • update the repo, when first clone has been done
cd /opt/art-decor-vue/art-decor
git pull
  • checkout the development branch (or another branch)
git checkout development
  • Fyi, vue.config.js contains information pointing to the backend database:
   proxy: {
     '/api': {
       target: 'http://localhost:8877'

If you run a database on your local system, no edits needed here.

  • setup Vue project

Info: https://bitbucket.org/art-decor/art-decor/src/master/

As root user:

npm install
  • For local testing and building:

Compiles and hot-reloads for development

nohup npm run serve &

Afterwards npm is listening on port 8080. Directly access it, or SSH-tunnel to this port.

Browse with your browser to http://localhost:8080