Skip to content

Installation

PhlexPlexico edited this page Nov 13, 2020 · 2 revisions

In order to get this up and running on a fresh install, we first need to acquire some dependencies. If you've already installed G5API, you're halfway there if you have Node setup.

First step is to add vue-cli-service:

yarn global add @vue/cli

Attempt to try using vue on the command line by entering

vue

If nothing is found, you will need to edit your PATH. Open ~/.bashrc in your favourite text editor, and add the following to the end:
export PATH="/home/YOURUSER/.yarn/bin:$PATH" where YOURUSER is your folder.

Once that's done, clone the project to your server.

git clone https://github.com/PhlexPlexico/G5V.git

Enter into that directory, then run:

yarn
yarn build

This will build a production ready build, which you can now use your preferred web server to run it!

If you do not wish to run through a web server and setup reverse proxies, there is a way to run it through the command line. You will need to edit your vue.config.js file to change the following to your domains:
public - must contain the URL of your Get5Vue instance. target - Under proxy, this must link back to your API. If it's running on the same machine, then this can be left as localhost. If not, adjust as need be.

Once this is complete, simply issue yarn serve in the directory, and it will spin up the web server. You can even set it as a service, and enable it on boot as well!

Clone this wiki locally