Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added note about maven settings after spending some time wondering why Maven was hanging when trying to retrieve Jars.

...

  1. Download and install Maven 2 from http://maven.apache.org
    (if behind a proxy don't forget to configure your Maven settings file appropriately)
  2. check out the codebase from our bitbucket repository: https://bitbucket.org/tdar/tdar.dev
  3. install the prerequisites:
    1. PostgresSQL - 9.1 (Harris+)
    2. Postgis
    3. Tomcat (production only)
    4. Atlassian Crowd or an LDAP server
  4. set up the database:
    1. create a user named tdar and grant CREATEDB permissions on postgres
    2. create the following database:
      1. tdarmetadata
      2. tdardata
      3. tdargis
    3. unzip src/main/db/tdardata.zip, src/main/db/tdarmetadata.zip, src/main/db/tdargis.zip
    4. setup the tdargis database as a postgis database
    5. load the sql for each zip file into the corresponding database
    6. run src/main/db/upgrade-db.sql on the tdarmetdata database
  5. set up the instance by performing the following:
    1. make sure you have a tdar user with CREATEDB permissions on postgres
    2. run the maven setup task:

      Code Block
      mvn -Psetup-new-instance compile
  6. setup auth environment
    1. in src/main/resources/ find the requisite config file (crowd.properties, ldap.properties)
    2. configure as needed
    3. Make sure that the auth system has the following groups:
      1. tdar-admins

      2. tdar-editors

      3. tdar-users

...