4. Reference

Related Links

Project Setup

Follow the Project Checkout instructions for git, then go to the project (relative path below).

$ cd app/contact-app/contact-webapp

General Setup Instructions

General instructions for checking out the project with Eclipse and building with Maven.

Example Project Setup

DB Setup Instructions

To setup the webapp to run with PostgreSQL, follow the steps below.

  • Install PostgreSQL 9.0
  • Create this file in your home directory so you don't have to enter the DB password.
    .pgpass
                                    
    *:*:*:postgres:password
    *:*:*:contact:contact
    localhost:5432:*:postgres:password
                                    
                                
  • Initialize the DB:
    $ cd app/contact-app
    $ ./init-postgres.sh
    or for re-initializing an existing DB:
    $ cd app/contact-app
    $ ./reinit-postgres.sh
  • Set the Java System Property when starting the servlet container for the Spring Profile.
    -Dspring.profiles.active=postgresql
  • Create a property file with the JDBC URL to PostgreSQL in the directory where the servlet container is started.
    contact-app.properties
                                    
    jdbc.url=jdbc:postgresql://$postgres_ip:5432/contact
                                    
                                

Project Information

  • Spring Framework 4.1.x