thehyve/data-showcase

Name: data-showcase

Owner: The Hyve

Description: A data showcase for displaying a summary of data in TranSMART.

Created: 2017-07-25 11:56:41.0

Updated: 2017-10-24 12:18:53.0

Pushed: 2017-12-04 10:51:27.0

Homepage:

Size: 1405

Language: CSS

GitHub Committers

UserMost Recent Commit# Commits
Barteld2017-10-17 15:11:56.011
Gijs Kant2018-01-29 15:48:58.0126
Ewelina Grudzie?2018-02-02 14:55:10.0205

Other Committers

UserEmailMost Recent Commit# Commits

README

Data showcase

Build Status

A data showcase for displaying a summary of data in TranSMART.

Development
Configure PostgreSQL database
 -u postgres psql
ash
te user datashowcase with password 'datashowcase';
te database data_showcase;
t all privileges on database data_showcase to datashowcase;
Run
ange to the application directory
ata-showcase

tch the Gradle wrapper
le wrapper

art the application, http://localhost:8080
adlew bootRun

art with the internal environment enabled
adlew -Dgrails.env=developmentInternal bootRun

u could run the reloading frontend separately, http://localhost:4200
rc/main/user-interface
start

ckage, creates build/lib/data-showcase-0.0.1-SNAPSHOT.war
adlew assemble

n the war
 -jar build/libs/data-showcase-0.0.1-SNAPSHOT.war
Publish

Do not forget to change the contents of env.json to:


nv": "prod"

Publish to Nexus:

ploy to the Nexus repository https://repo.thehyve.nl
adlew publish

This publishes the artifact nl.thehyve:data-showcase:0.0.1-SNAPSHOT:war.

Deploy

For deployment, fetch the application war file from the Nexus repository, and run the application with an external config file:

RY_OPTIONS="-Xms2g -Xmx2g -XX:MaxPermSize=512m"
_OPTIONS="-server -Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom"
OPTIONS="-Dgrails.env=prod -Dspring.config.location=/home/user/data-showcase-internal.yml"
 -jar ${JAVA_OPTIONS} ${MEMORY_OPTIONS} ${APP_OPTIONS} data-showcase-0.0.1-SNAPHOT.war

Example configuration file data-showcase-internal.yml:

Showcase:
environment: Internal
accessToken: '<configure a secure token>'
ntrLogo: '/<path to the logo>/<file name>'
vuLogo: '/<path to the logo>/<file name>'
Source:
url: jdbc:postgresql://localhost:5432/data_showcase
username: datashowcase
password: <configure a secure password>
Testing
ata-showcase

n unit tests
adlew -Dgrails.env=test test

n unit tests for the internal environment
adlew -Dgrails.env=testInternal test

n unit tests and user interface unit tests
adlew -Dgrails.env=test check

For end-to-end API tests, see data-showcase-api-e2e. For user interface end-to-end tests, see user-interface.

Continuous integration

Bamboo plan: DS-DEV.

License

Copyright © 2017 The Hyve B.V.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.