Beapi-io / beapi_frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
  1. move application to /usr/share
sudo mkdir /usr/share/beapi
mv beapi_frontend /usr/share/beapi/frontend
  1. Copy your service file into the /etc/systemd/system.
  2. 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

  • config.json : contains url of 'master' instance; this has to be set
  • config.js : env variables
    • window.version : version of BeAPI you are running (ie '1.5.58'); this has to be set.

About


Languages

Language:JavaScript 48.0%Language:CSS 26.9%Language:HTML 24.5%Language:SCSS 0.4%Language:PHP 0.2%Language:Python 0.1%Language:Shell 0.0%Language:Pug 0.0%