Skip to content

HandSpy is a web-based application for management and analysis of mental health aspects of individuals based on their textual productions, both handwritten and typewritten. As of v3, its codebase has been completely re-implemented in a microservice architecture. This repository contains the Gateway microservice.

Notifications You must be signed in to change notification settings

handspy/handspy-gateway

Repository files navigation

HandSpy Gateway Microservice

This application is the Gateway microservice of HandSpy.

Building for production

Packaging as jar

To build the final jar and optimize the gateway application for production, run:

./gradlew -Pprod clean bootJar

This will concatenate and minify the client CSS and JavaScript files. It will also modify index.html so it references these new files. To ensure everything worked, run:

java -jar build/libs/*.jar

Then navigate to http://localhost:8080 in your browser.

Refer to [Using JHipster in production][] for more details.

Packaging as war

To package your application as a war in order to deploy it to an application server, run:

./gradlew -Pprod -Pwar clean bootWar

Testing

To launch your application's tests, run:

./gradlew test integrationTest jacocoTestReport

Code quality

Sonar is used to analyse code quality. You can start a local Sonar server (accessible on http://localhost:9001) with:

docker-compose -f src/main/docker/sonar.yml up -d

You can run a Sonar analysis with using the sonar-scanner or by using the gradle plugin.

Then, run a Sonar analysis:

./gradlew -Pprod clean check jacocoTestReport sonarqube

For more information, refer to the [Code quality page][].

Using Docker to simplify development (optional)

You can use Docker to improve your JHipster development experience. A number of docker-compose configuration are available in the src/main/docker folder to launch required third party services.

You can also fully dockerize your application and all the services that it depends on. To achieve this, first build a docker image of your app by running:

./gradlew bootJar -Pprod jibDockerBuild

Then run:

docker-compose -f src/main/docker/app.yml up -d

For more information refer to [Using Docker and Docker-Compose][], this page also contains information on the docker-compose sub-generator (jhipster docker-compose), which is able to generate docker configurations for one or several JHipster applications.

About

HandSpy is a web-based application for management and analysis of mental health aspects of individuals based on their textual productions, both handwritten and typewritten. As of v3, its codebase has been completely re-implemented in a microservice architecture. This repository contains the Gateway microservice.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published