Skip to content
This repository
branch: poc-java

This branch is 932 commits ahead and 4338 commits behind master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 grunt.js
Octocat-spinner-32 package.json
Octocat-spinner-32 pom.xml


Home of CalCentral. Build status for calcentral

To run the server, you will first need PostgreSQL running on your machine.

There's a good setup guide for OSX at and guides for other OSes at On my Mac, I found it easiest to use the "brew install postgresql" method from the first page. If you don't have brew, get it here:

Install postgres:

brew update
brew install postgresql
initdb /usr/local/var/postgres

Start postgres and create a blank db:

pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
psql postgres
create database calcentral;
create user calcentral with password 'secret';
grant all privileges on database calcentral to calcentral;
create database calcentraltest;
create user calcentraltest with password 'secret';
grant all privileges on database calcentraltest to calcentraltest;

Mac OS X Lion users: If you're encountering issues connecting to the postgres server:

Stopping postgres:

pg_ctl -D /usr/local/var/postgres stop -s -m fast

Initializing the database (destroys existing data):

mvn flyway:clean

More information can be found here:

To start the CalCentral server:

mvn clean package jetty:run

Access the server at http://localhost:8080/

To stop the server:


To start the server a little quicker, when you know Java code and XML configs have not changed:

mvn jetty:run

You can take all the default properties, or override some (or all) of them by creating your own *.properties files. There are other optional config settings that can be passed on the mvn command line. A partial reference:

mvn jetty:run

To run the server with unit tests, integration tests, and test coverage reports:

mvn clean install cobertura:cobertura jetty:run

You can read coverage reports from target/site/cobertura/index.html.

To run the server with integration tests (requires postgres already running):

mvn clean verify
Something went wrong with that request. Please try again.