Documents setting up code, config, and data in a development environment using Eclipse.
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.
There, look on the Arguments tab and find the -D setting for "catalina.base", e.g.
-Dcatalina.base="C:\Users\Brian Carlsen\workspace-luna\.metadata\.plugins\org.eclipse.wst.server.core\tmp0" |
The Tomcat server needs to be able to find the run configuration. Double-click on the Tomcat server you installed, open the launch configuration and add this setting:
-Drun.config=/path/to/your/config.properties |
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.