-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Answer consists of two main blocks:
- frontend (MySQL, Java, Tomcat)
- backend (MongoDB, Python, nginx)
- Install MySQL 5.7+
- Create a new schema and import the following database template SQL zipped file
- The template database has a few dummy user accounts setup and all the supporting data to use the lookup tool.
- You will need to match tokens and urls to your server's configuration (see customization section)
- Install Java 8+ (not tested on Java 9+)
- Install Tomcat 8.5+
- Create a directory structure in
/opt/answer/ - Copy/paste files from dir_structure
- You will need to add the database and other credential information in
/opt/answer/conf/(see customization section) - Copy the web application Answer.war to your Tomcat webapps directory (eg. /opt/tomcat/webapps/)
This section describes how to customize Answer for your institution (own logo, address, titles, credentials, file paths, etc) Supporting files, description of directories and templates are in this repository
application-template.properties: DO NOT SHARE THIS FILE! It’s where all modifications to customize Answer are. Modify the file to save all credentials (database, ldap, etc), api keys, application settings (eg. prod vs. dev), login type (ldap, vs local), institution name and application urls. Save this file to /opt/answer/conf/answer.properties
answer-static-api.properties: links to external APIs. Should not be modified. Save this file to /opt/answer/conf/
answer-file-paths.properties: Path to static resources (images, fonts, etc). Unless necessary, the file does not need modification. Save this file to /opt/answer/conf/
Address.txt: address of your institution + main person responsible for the cancer tests. Top left corner of the PDF.
API token: use your own token to make sure nobody else can use the following end points:
UPDATE `answer_db`.`token` SET `token` = <{token: }> WHERE `type` = 'parse-mda';
UPDATE `answer_db`.`token` SET `token` = <{token: }> WHERE `type` = 'update-genie';
UPDATE `answer_db`.`token` SET `token` = <{token: }> WHERE `type` = 'dev-login';
For logos in the application and in the PDF, copy your own images in the paths below, keep aspect ratio when possible. File names must remain the same. Original images can be found on git in webapp/Answer/WebContent/resources/images:
Im5.png: home page title bar logo
ngs-tow-lines.png: home page title bar logo
Im5.png: top PDF page title bar logo
ngs-tow-lines.png: top PDF page title bar logo
- Users
- Groups
- Gene Panels
- Permissions
- Clinical Tests