**CODIS** - A system for distributed computing using JS engines in web browsers.
npm install codis-slave-scriptbash
$ yarn global add codis-slave-script
`
or
`$bash
$ npm install -g codis-slave-script
`
Getting Started
After installation, call the command:
`bash
$ codis-init-slave
`
This command has two options:
- destination - the websocket address of our CODIS-MASTER.
- one-per-system - limit creation of execution nodes to one open tab in the browser for a given domain. In other words, with an open web page in two internet tabs, the system will only work on the first opened tab to reduce the system load. If the first card is closed, an executive node will be created on the second card.
Example:
`bash
$ codis-init-slave --destination ws://153.63.21.221:5299 --one-per-system true
`
The command will create 3 files in the selected directory:
- codis.js
- sharedInspector.js
- CODIS-slave.js
You must enable downloading of these files through your website.
You need to add codis.js to your html file of your website: (preferably with the defer option to make the script initialization in no way affect the website):
`html