Skip to content

Development mode

Alexey Velikiy edited this page Dec 1, 2018 · 6 revisions

You need to start two processes: nodejs and python parts. See Architecture to learn more. Python side connects to node.js side with ZeroMQ. So it is possible to run node.js and python on different (virtual) machines.

We prefer to develop in Visual Studio Code

Server (Node.js)

cd server
npm install
npm run dev

There is a config for that in server/.vscode for attaching to dev-server.

Analytics (Python)

cd analytics
python3 server.py

It is also possible to run python process from vscode on a different machine. For example, you may want to run python on Windows and connect it to Linux process which runs via WSL.

Run tests

Server

cd server
npm test

Analytics

cd analytics
python3 -m unittest discover

discover flag used to look though all tests in folder.

Clone this wiki locally