wiki:SetupDev

Version 5 (modified by Pan Luo, 13 years ago) ( diff )

--

So, you want to do some contribution for iPeer project. Just follow the following steps to make your own local development environment.

  1. Get a GitHub Account from https://github.com.
  2. Install Git on your local computer.
  3. Fork the iPeer project (https://github.com/ubc/iPeer) into your account and clone the code from your forked repo: http://help.github.com/fork-a-repo/
  4. Additional steps to set up
    • Pull the Guard plugin.
      cd ipeer
      git submodule init
      git submodule update
      
    • Ignore the updates in config/database.php
      git update-index --assume-unchanged app/config/database.php
      
  5. Setup coding standard
  6. Starting developing~
  7. Once you finished, you can issue a pull request so that we can merge your changes to the iPeer repo. http://help.github.com/send-pull-requests/

See, that's not very hard.

Debugging

For version 2.x

To turn on debug mode, change the line in file app/config/core.php from:

define('DEBUG', 0);

to

define('DEBUG', 2);

For version 3.x

To turn on debug mode, change the line in file app/config/core.php from:

Configure::write('debug', 0);

to

Configure::write('debug', 2);
Note: See TracWiki for help on using the wiki.