Beapi-io / beapi_frontend

2 stars 0 forks source link

Beapi-Frontend

ENVIRONMENT SETUP

  1. Make sure you are using a version of Node.js greater than 6.X

  2. change the port that node listens on

    sudo apt-get install libcap2-bin
    sudo setcap cap_net_bind_service=+ep /usr/bin/node <--(change if this isn't your node application path)

CONFIGURE

Change the window.version in 'public/html/config.js' to match the current beapi-all-in-one version you are running:

window.version = '1.6.58';

also install...

npm install googleapis

RUN

  1. To run the application, go into the root directory and type the following:
    nodejs app.js

INSTALLATION AS A SERVICE (this can all be an install script in future)

  1. add 'beapi' user
    useradd beapi -d /home/beapi
  2. move application to /usr/share
    sudo mkdir /usr/share/beapi
    mv beapi_frontend /usr/share/beapi/frontend
  3. Copy your service file into the /etc/systemd/system.
  4. Start it with:
    systemctl start beapi_frontend

    Enable it to run on boot with:

    systemctl enable beapi_frontend

Pulling new changes on the server currently requires:

sudo git -c http.sslVerify=false pull

Configure