Kaspar94 / TVL

1 stars 0 forks source link

TVL ( Tagastuste Vormistamise Lahendus )

TVL'i kasutusjuhend: https://docs.google.com/document/d/1489TDJBvDBAZWvpk4rNomsg-zlUw0NH-uMfw5wkASls/edit?usp=sharing

Running application locally

  1. Download Node.js (LTS)
  2. Clone git repository git clone https://github.com/Kaspar94/TVL.git
  3. Go to project folder cd TVL
  4. Install front-end dependencies npm install
  5. Build front-end app npm run build
  6. Go to server folder cd server
  7. Install server dependencies npm install
  8. Create file 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
  9. Launch server Windows: node server.js, Ubuntu: sudo node server.js or PORT=8080 node server.js, default port is 80
  10. Open browser and type localhost or localhost:8080 if you set port to 8080
  11. To stop the server, use Ctrl+C

Käsud rakenduse üles seadmiseks linux masinal

TVL kaustas

Kui server teisiti ümber pole seadistatud, kasutada iga käskluse ees sudo.

TVL/server kaustas

Rollid