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
Size: 1405
Language: CSS
GitHub Committers
User | Most Recent Commit | # Commits |
---|---|---|
Barteld | 2017-10-17 15:11:56.0 | 11 |
Gijs Kant | 2018-01-29 15:48:58.0 | 126 |
Ewelina Grudzie? | 2018-02-02 14:55:10.0 | 205 |
Other Committers
User | Most Recent Commit | # Commits |
---|
A data showcase for displaying a summary of data in TranSMART.
-u postgres psql
ash
te user datashowcase with password 'datashowcase';
te database data_showcase;
t all privileges on database data_showcase to datashowcase;
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
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
.
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>
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.
Bamboo plan: DS-DEV.
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/.