My favorites | Sign in
Project Logo
                
Search
for
Updated Feb 05, 2009 by wajiii
Labels: Phase-Implementation, Featured
GettingStarted  
How to get started with the ORBlogs/BigBark codebase.

Prerequisites

Step by Step

(No, not the television show!)

Getting started with the ORBlogs/BigBark codebase is straight forward:

Step 1: Checkout and Build

  1. Download and unpack Maven 2.0.9
  2. Verify Maven install by running "mvn -version" from the command line
  3. Check out SVN code from this project
  4. From with the checkout, run "mvn install". You'll get an error that 5 dependencies could not be found.
  5. Go in to the etc directory and run the install-libs script (.sh for unix and .bat for windows)
  6. Go back to the root checkout and run "mvn install". It should complete successfully.

Step 2: Open in an IDE

If you are using IntelliJ IDEA, it can automatically open pom.xml files, which are the Maven build instruction.

If you're on a different IDE, it may or may not support Maven natively. If it doesn't, there may be a Maven plugin that can generate the project settings for you. For example, you can run "mvn eclipse:eclipse" from the command line and it will generate an Eclipse project file for you.

Step 3: Running the Code

To get the code running, you need a local copy of MySQL running. MySQL needs a database named "bigbark" with a username and password of "bigbark" that has full permissions on that database. You do not need to set up any tables ahead of time, as those will be created automatically when the server runs.

mysql> create database bigbark;
Query OK, 1 row affected (0.00 sec)

mysql> create user bigbark;
Query OK, 0 rows affected (0.00 sec)

mysql> grant all privileges on bigbark.* to 'bigbark'@'localhost' identified by 'bigbark';
Query OK, 0 rows affected (0.00 sec)

Once the database is set up, simply execute the maven "jetty:run" goal. That will create a mini web server available at http://localhost:8080/.

That's it!

Navigating the Code

The directory structure uses the standard Maven build structure, which is:



Sign in to add a comment
Hosted by Google Code