The following software will need to be installed prior to running this project
- git
- Apache Maven
- Apache Ant
- Apache Tomcat
- JDK 1.7
- PostgreSQL
*For Mac - use homebrew
- brew install postgresql
- postgres -D /usr/local/var/postgres &
- createuser -d -P postgres
- createuser -d -P user_name
- createdb db_name -U user_name -W
Once all of this software is installed follow these steps to get your workspace set up.
- Clone this project into your workspace.
- Clone the Broadleaf Commerce project into your workspace.
- Create a database in PostgreSQL to hold the project's data (it doesn't matter what the name is)
- Copy the server.xml from the setup folder into your tomcat/conf directory (overwrite your current server.xml)
- Edit the server.xml file and input your database information.
- Copy the postgresql-9.1-901.jdbc4.jar from the lib directory to your tomcat's lib directory
- Copy the settings.xml from the setup folder into your ${user_home}/.m2 directory (backup your current setting.xml if you have one)
- Create a .properties file in the build/user directory with your username on the current computer in the format ${username}.properties, using an existing file as a template
- Run mvn install -DskipTests=true on the BLC project.
- Run mvn install on this project AFTER the BLC project has been installed.
- Run the "redeploy-tomcat-and-start" target on the build.xml file in the site directory
- Once the site is up, run all of the sql scripts in the scripts/db/bootstrap directory in numberical order in the database
- Go to the http://localhost:8080, the site should be up