Changes between Version 4 and Version 5 of BossaImplementation
- Timestamp:
- Oct 18, 2007, 2:57:35 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BossaImplementation
v4 v5 5 5 First, [ServerIntro set up a BOINC server] and [MakeProject create a project]. 6 6 You'll need PHP 5.2 or later (for JSON functions). 7 Say your project is called ' test_project', your BOINC source directory is '~/boinc',8 and your BOINC projects directory is ' ~/projects'.7 Say your project is called '''test_project''', your BOINC source directory is '''~/boinc''', 8 and your BOINC projects directory is '''~/projects'''. 9 9 10 10 Create Bossa's database tables as follows: … … 21 21 }}} 22 22 23 You can edit bossa_setup_example.php to change the application name 23 bossa_setup_example.php contains: 24 {{{ 25 $ba = new BossaApp(); 26 $ba->name = 'bossa_test'; 27 $ba->user_friendly_name = 'Simple pattern recognition'; 28 $ba->start_url = 'bossa_example.php'; 29 30 if ($ba->insert($ba)) { 31 echo "Added application '$ba->name'\n"; 32 } else { 33 echo "Couldn't add '$ba->name': ", mysql_error(), "\n"; 34 } 35 }}} 36 You can edit this to change the application name 24 37 and front-end script name, if you like. 25 38 26 == The Bossa database tables ==39 == Database tables and PHP structures == 27 40 28 41 Until Bossa has good web-based administration tools, 29 you'll need to examine and modify theMySQL database directly,30 using the command-line tool 'mysql' ,42 you'll need to examine and modify its MySQL database directly, 43 using the command-line tool 'mysql' 31 44 or a web-based interface such as [http://www.phpmyadmin.net/ phpMyAdmin]. 32 45 33 The Bossatables are as follows:46 The database tables are as follows: 34 47 35 bossa_app:48 '''bossa_app''': 36 49 || field name || type || meaning || 37 50 || id || integer || row ID, assigned by MySQL || … … 44 57 || info || text || information (typically encoded in JSON) such as the criteria for which users to issue jobs to || 45 58 46 bossa_job:59 '''bossa_job''': 47 60 || field name || type || meaning || 48 61 || id || integer || row ID, assigned by MySQL || … … 59 72 || nsuccess_needed || integer || required number of successfully completed instances || 60 73 61 bossa_job_inst:74 '''bossa_job_inst''': 62 75 || field name || type || meaning || 63 76 || id || integer || row ID, assigned by MySQL || … … 68 81 || info || text || outcome info (usually JSON-encoded) || 69 82 70 bossa_app_user:83 '''bossa_app_user''': 71 84 || app_id || integer || ID of bossa_app || 72 85 || user_id || integer || ID of user || 73 86 || info || text || description of the user's skill or ranking at a given app, typically JSON-encoded || 74 87 88 The Bossa PHP code uses the following classes: 89 90 '''BossaApp, BossaJob, BossaJobInst''':: 91 These correspond to the above tables, and have fields corresponding to each database field. They offer various functions to insert, look up, and modify database rows. 92 '''Bossa''': 93 Various utility functions. 94 75 95 == Front-end scripts == 76 96