Overview

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

Prerequisites

Details

Step 1

Clone the Github repository to a local directory (e.g. c:/workspace/SNOMED-Terminology-Server)

Step 2 - Stock setup for Windows development

Step 3

Edit the configuration file to set correctly for your environment.  In particular, edit these:

Step 4

Set up environment:

Step 5

Create a MySQL UTF8 database. e.g.


Step 6

Deploy the admin tools and run the loader script for your environment. 

NOTE: if re-running this, you first have to run the sql in "truncate_all.sql" to clear your database of tables (Recommend using MySQL Workbench for this in the dev environment).

Step 7

Build all modules with "mvn clean install" at the top level - either through Eclipse or via the command line.  Among other things, this will produce a term-server-rest.war file that can be deployed.

Step 8

Deploy the term-server-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

Check that it all works by going to

http://localhost:8080/term-server-rest/index.html

This should be a "swagger" Api documenting the current state of the API.  You should be able to test services by using "guest" as the authToken parameter.

References/Links