Make sure Node version 8 or above and npm are installed.
For Windows or Darwin download the installer from: https://nodejs.org/en/ For Linux:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
Open Command Prompt inside the clone repository then execute the following commands:
...> cd Project/electron
...\Project\electron> npm install
...\Project\electron> cd resources/client
...\Project\electron\resources\client> npm install
...\Project\electron\resources\client> npm run build
...\Project\electron\resources\client> cd ../server
...\Project\electron\resources\server> npm install
...\Project\electron\resources\server> cd ../..
After all these commands are executed you're all set and back to ...\Project\electron>
.
To run the application execute:
...\Project\electron> npm start
Execute the following command:
...\Project\electron> npm run build -- --platform=darwin --arch=x64
And you should end up with a .app.
Execute the following command:
...\Project\electron> npm run build -- --platform=linux --arch=x64
And you should end up with a folder and a linux runnable file inside.
Execute the following command:
...\Project\electron> npm run build -- --platform=win32 --arch=x64
And you should end up with a folder with an .exe file inside.
To run the tests implemented execute:
...\Project\electron\resources\server> npm test
To run the benchmarking execute:
...\Project\electron\resources\server> npm run benchmark mode processor comparator algorithm dataset lvs executions
mode
= sequencial / promises / kue
processor
= goeburst
comparator
= goeburst
algorithm
= boruvka / prim / kruskal
dataset
= A dataset name from PubMLST for example "spneumoniae"
lvs
= An integer above or equal to 0 (for tiebreak rule)
executions
= An integer above 0 (number of times the benchmark will run)