Overview

Documents setting up code, config, and data in a development environment using Eclipse.

 

Prerequisites

As this project is organized around Maven and may make use of resources on IHTSDO Nexus, properly configure your Settings.xml Page.

Details

Step 1 - Create directories

  Setup for Windows

  Setup for Unix/Linux/Mac

Step 2 - Clone repositories

Clone the Github repository to the directory created to hold the code.

Step 3 - Build project

Build all project modules with "mvn clean install" at the top level - either through Eclipse or via the command line.


Step 4 - Setup Configuration

Choose a "dev-windows", "uat", or "prod" config project target and unzip it into the directory created to  hold your config files.

Step 5 - Edit configuration

Edit the "config.properties" file in your config files directory to set correctly for your environment.  In particular, edit these:

Step 6 - Create database

Create a MySQL UTF8 database. e.g.

CREATE database mappingservicedb CHARACTER SET utf8 default collate utf8_unicode_ci;

 


Step 7 - Load data

Download and unpack the data file (mapping-demo.zip) into your data directory (e.g. c:/mapping/data): 

Run the "Reset Demo Database" integration-test. You must specify 3 parameters:

See images below to set up a JUnit run configuration that will generate your demo database.


Step 8 - Deploy wars

Deploy the mapping-rest.war file to a Tomcat server - either through Eclipse or a standalone tomcat installation.

Setting up Tomcat in Eclipse is very easy, you follow these steps.

Step 9 - Test

Check that it all works by going to

http://localhost:8080/mapping-rest/index.html 

This should be the login page for the application. If you have security disabled, you should be able to log in using a username and matching password of 'lead1' or 'specialist1' or any of the usernames listed in the config.properties file.

 

References/Links