Home | Index

r3 Quick Start Guide

Create a working environment

Use the instructions below to set up an r3 working environment:

  1. Create an r3 working directory:

    $ mkdir ~/r3
  2. Have r3 prepare the directory for you.

    $ r3 setup setuphome ~/r3
  3. Create an environment variable to remind r3 where its home is.

    $ export R3HOME=~/r3
  4. Set up your databases:

    1. To use r3 against MySQL, edit $R3HOME/r3.conf.xml and change the <DB> section to refer to mysql with the appropriate host, dbname etc.

      [Note] Note

      If you are setting up the MySQL database yourself, ensure that you have correct permissions, etc, and that a MySQL server is running.

    2. For either MySQL or SQLite, create local databases using the $R3HOME environment variable.

      $ r3 setup installdb
  5. Create your product, intl, and target:

    $ r3 dim product create myproduct
    $ r3 dim intl create us
    $ r3 target create myproduct/us/index.html