= Install Cocode = ''This page will be updated as the automated installer is created.'' Cocode is available for checkout via Subversion. It is currently in a pre-alpha state, and tracking /trunk may lead to unstable or broken builds. You can check it out and play with it. If you notice problems, you can register on this site and submit a ticket. If you want to help work on it, you can send a message to {{{me {at} jamessocol {dot} com}}}. == System Requirements == * '''PHP 5.2.3''' or higher. (may work as low as 5.2.0, unsupported) * '''MySQL 5'''. * PHP's '''[http://php.net/mysqli MySQLi]''' extension. * '''diff''' or another diff utility. (optional) * '''mod_rewrite'''. (for Apache. could be configured with other servers, unsupported) My test environments are Windows XP, Vista, and Fedora, all running Apache, but it should run on any web server. == Getting the Source == Use SVN to check out the latest version of Cocode: {{{ $ svn co svn://jamessocol.com/cocode/trunk ./cocode }}} SVN will create the following directory structure, the important parts are highlighted. {{{ /cocode /config <-- edit db.php, routes.php and possibly env.php for your local environment /controllers /helpers /install /db <-- run the SQL scripts in order /javascript /models /system /tmp <-- must be writeable by the web server /views }}} == Setting up the Database == You should create a dedicated user and database for Cocode. [http://svn.jamessocol.com/maveric Maveric], the framework running Cocode, does not support table prefixes, and table names like {{{users}}} and {{{comments}}} could easily collide with other applications. These instructions will assume your database and user name are both '{{{cocode}}}', the password is '{{{password}}}', and the host is '{{{localhost}}}'. Replace these with the actual values. === Edit config/db.php === The file {{{config/db.php}}} should look like this: {{{ #!php ' WHERE name = 'diff_util'; }}} == Final Steps == You ''should'' be done. If you are getting PHP {{{E_NOTICE}}} errors, make sure error reporting is turned off. If you set {{{MAVERIC_MODE}}} in {{{config/env.php}}} to '{{{production}}}', all errors should be hidden. If things aren't working, and you see no errors, make sure to set {{{MAVERIC_MODE}}} back to '{{{development}}}', and set {{{php_flag display_errors on}}} in the {{{.htaccess}}} file. == Running It == Head to your Cocode installation, for example {{{http://localhost/cocode}}}, in your favorite browser. You can log in with the user name {{{admin}}} and the password {{{password}}}.