Skip to content

diogorloureiro/PHYLOViZ-Electron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Before cloning

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

Setup

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

To build the application for distribution:

Darwin:

Execute the following command:

Take notice that you need to change the arch type to fit the machine!

...\Project\electron> npm run build -- --platform=darwin --arch=x64

And you should end up with a .app.

Linux

Execute the following command:

Take notice that you need to change the arch type to fit the machine!

...\Project\electron> npm run build -- --platform=linux --arch=x64

And you should end up with a folder and a linux runnable file inside.

Windows:

Execute the following command:

Take notice that you need to change the arch type to fit the machine!

...\Project\electron> npm run build -- --platform=win32 --arch=x64

And you should end up with a folder with an .exe file inside.

Testing

To run the tests implemented execute:

...\Project\electron\resources\server> npm test

Benchmarking

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)

About

Bachelor's Degree In Computer Science and Engineering Final Project

Resources

Stars

Watchers

Forks

Packages

No packages published