Skip to content
No description, website, or topics provided.
JavaScript CSS HTML Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
node_modules
public
routes
views
.gitignore
README.md
app.js
app.js~
beapi_frontend
package.json

README.md

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/nodejs <--(change if this isn't your node application path)

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
You can’t perform that action at this time.