TVL'i kasutusjuhend: https://docs.google.com/document/d/1489TDJBvDBAZWvpk4rNomsg-zlUw0NH-uMfw5wkASls/edit?usp=sharing
git clone https://github.com/Kaspar94/TVL.git
cd TVL
npm install
npm run build
cd server
npm install
password.json
at ./TVL/server/api/data/
, and fill it with {"username" : "", "password" : ""}
. This is used by xmlController
to authenticate itself at Omniva infosystems. Command on Ubuntu for lazy people echo "{\"username\" : \"\", \"password\" : \"\"}" > api/data/password.json
node server.js
, Ubuntu: sudo node server.js
or PORT=8080 node server.js
, default port is 80
localhost
or localhost:8080
if you set port to 8080Ctrl+C
apt-get install npm
apt-get install nodejs-legacy
Kui server teisiti ümber pole seadistatud, kasutada iga käskluse ees sudo.
npm install -g @angular-cli
(installib angulari)npm install
(installib angularile vajalikud teegid)ng build --env=prod
npm install
(installib nodele vajalikud teegid)
NODE_ENV=prod node server.js
(käivitab serveri)