Skip to content

Beapi-io/beapi_frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published