BOINC module

From Web Computing Documentation
Jump to: navigation, search

Setting up JavaScript applications in BOINC

The BOINC server is capable of managing distributed applications written in any language. The framework can connect to any standard BOINC servers with minimal modifications. If you don't have a BOINC server yet just follow the instructions on the official site.

Then you need to create a project where you would like to deploy your JS application. This can be an existing project too already containing applications for other platforms. Then you need to add a new platform called javascript to your project. The WC framework will request jobs corresponding to this platform.

Then you can use the usual BOINC tools for adding applications and applications versions. During the process you need to upload the JavaScript application executables.

Enabling CORS

CORS is the technology enabling JavaScript applications from one domain to access servers on another. Enabling CORS for your BOINC server is essential if you want to enable WC client applications downloaded from all hosts access your BOINC server. Fortunately this is very simple and only means adding some header information to your webserver.

If you use Apache2 you need to include the following header information.

<Directory "/home/boincadm/projects/myproj">
   Header set Access-Control-Allow-Origin "*"
   Header set Access-Control-Allow-Methods "GET, POST"
   Header set Access-Control-Allow-Headers "Content-Type"
   Header set Access-Control-Max-Age: 10

Where /home/boincadm/projects/myproj is your project directory. Your BOINC server should be ready now to cooperate with the Web Computing framework.

The BOINC module

You can check out the list of classes in the BOINC module.

Personal tools