A UI-t először buildelni, majd egy webszerveren futtatni kell.
- A build-hez a node és npm (node package manager) dependenciákra van szükség, létezik windows installer, illetve linux alá package manager csomagok (
apt-get install nodejs npm
). - A projekt gyökérkönyvtárban az
npm install
parancs installálja a szükséges függőségeket. - A futtatás legyegyszerűbb módja az
npm run dev
parancs (alternatívan anode build.js dev
parancs), ezzel egy development szerver indul alocalhost:8080
porton. Ha ez nem felel meg, bármilyen web-szervert lehet használni, aznpm run prod
parancs előkészíti az állományokat abuild
könyvtárban, ezeket bármilyen web-szerverből lehet futtatni. - A UI-nak egy futó szerverhez kell csatlakoznia. Alapértelmezetten a
9092
porton létesíti a websocket kapcsolatot, illetve a9093
porton a képfeltöltéshez szükséges API-hoz. A szerver Ip címe (helyi szervernéllocalhost
), valamint a portok asrc/app/utils/globals.js
állományban módosíthatók. Újra-buildelés szükséges.
A minimális futtatáshoz:
- Fusson a szerver a helyi gépen.
- Futtassuk az
npm install
parancsot. - Futtassuk az
npm run dev
parancsot. - Nyissuk meg a
localhost:8080
címet Chrome-ban.