summaryrefslogblamecommitdiffstats
path: root/documentation/installation/README.md
blob: e693871dfccec110b6b7605c1c0ed2ad7ecd4d15 (plain) (tree)

















































                                                              

Installation

Install needed packages

sudo apt-get install git
sudo apt-get install curl software-properties-common
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
sudo apt-get install nodejs

Install node.js server

git clone http://git.ks.uni-freiburg.de/lsfks/projekte/bas.git
cd bas/server
npm install

Copy certificates

scp privkey.pem user@host:path/privkey.pem
scp fullchain.pem user@host:path/fullchain.pem

Setup config files

cd bas/server/config
cp authentication.template.json authentication.json
cp database.template.json database.json
cp config.template.json config.json

Install webapp

cd bas/webapp
npm install
npm run build

Start the node.js server

cd bas/server
npm start

Default Ports

  • Server: 3000
  • tftp: Serverport + 1 (3001)