Skip to content
Harold Affo edited this page Nov 28, 2016 · 9 revisions

Welcome to the igamt wiki! The wiki provided instructions on how to set up the development environment for the IGAMT tool. The instructions have been tested only mac os only.

Architecture (in progress)

The tool is developed using the following technologies:

Server Side

  • Spring 4
  • Hibernate
  • MySQL DB
  • Maven for build and dependency management

Client Side:

  • Angular JS
  • Bower
  • Grunt
  • Twitter Bootstrap

How to set up the server side (mac os only)

Set up tomcat

Set up mongodb

  1. Install mongo db brew install mongodb
  2. Create mongodb new database called 'igl'
  3. Edit $TOMCAT_HOME/conf/context.xml
  4. Add the following line at the bottom of :

<Resource name="jdbc/igl_mongo" auth="Container" type="com.mongodb.MongoCredential" factory="gov.nist.healthcare.tools.hl7.v2.igamt.lite.web.config.CustomMongoJNDIFactory" host="localhost" db="igl" username="igl-user" password="igl" port="27017"/>

  1. Start mongodb server

Set up mysql

  1. Install mysql mysql db
  2. Create user with username of your choice
  3. Edit $TOMCAT_HOME/conf/context.xml
  4. Add the following line inside :

<Resource name="jdbc/igl_jndi" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="XX" password="XX" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/igl" />

Make sure 'XX' match the values in your mysql configuraiton. 5. Load the scripts at /igamt/igamt-lite-resource/docs/igl.sql into your mysql db.

How to set up the client side (mac os only)

  1. Install nodejs: https://nodejs.org/
  2. Install grunt and grunt-cli: http://gruntjs.com/getting-started
  3. Navigate to igamt/igamt-lite-client
  4. Run npm install
  5. Run bower install
  6. Run grunt build. This will build the client and export to igamt/igamt-lite-controller/webapps/
  7. Start grunt and test grunt serve http://localhost:9000/#/home

Add external dependencies

  • vocabServiceClient

    Location: igamt-lite-service/lib/vocabServiceClient-1.0.jar

    Install Script: mvn install:install-file -Dfile=<Local Path to vocabServiceClient-1.0.jar> -DgroupId=gov.cdc.phinvads \ -DartifactId=vocabServiceClient -Dversion=1.0 -Dpackaging=jar