8000 GitHub - OCTRI/clinch-it: Demo Dashboard for Social Determinants of Health
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

OCTRI/clinch-it

Repository files navigation

Clinch IT

Project Description

This provides a demo dashboard to track Social Determinants of Health. The application loads some sample patients and history. Clinicians can view and update SDH Domain information, determine priority and patient readiness, and track referrals.

Development Info

This is a Spring Boot project. It uses a mysql database for storage, managed using Flyway.

Setup

Application Startup

Running with Docker

Copy env.sample to .env and update as needed. No changes required unless you want different database passwords.

Build the project,

mvn clean package -DskipTests

Start the containers,

docker-compose up -d

You should find the app at,

http://localhost:8080/clinch-it

Templates

Mustache templates are stored in src/main/resources/mustache-templates which was overridden in src/main/resources/application.properties by the property spring.mustache.prefix.

By default there is a home.mustache template that uses a header layout (layout/header.mustache) and a footer layout (layout/footer.mustache).

Bootstrap 4 and jQuery 3 are both included in the templates. Additional CSS styles may be added to static/css/main.css.

Integration tests requiring a database

To bring up a testing database you may use the Docker Compose file docker-compose.test.yml:

docker-compose -f docker-compose.test.yml up -d

This brings up a second MySQL database container on port 3307. test-application.properties overrides the datasource URL.

Add the following annotations to your test class which will bring up a full application context that uses this test datasource.

@RunWith(SpringRunner.class)
@TestPropertySource(locations = { "classpath:application.properties", "classpath:test-application.properties" })
@SpringBootTest

Flyway Migrations

To create a Flyway migration, create a version directory in src/main/resources/db/migration. For example:

mkdir src/main/resources/db/migration/0.0.1

Now add your migrations in this directory. For example, V19700101000042__my_first_migration.sql which follows the format: V, followed by the year, month, day, hours, minutes, seconds (YYYYMMDDhhmmss), two underscores, a short description, and finally .sql.

About

Demo Dashboard for Social Determinants of Health

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
0