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 User Authentication and Authorization (UAA) microservice.

Notifications You must be signed in to change notification settings

handspy/handspy-uaa

Repository files navigation

HandSpy UAA Microservice

This application is the User Account and Authentication (UAA) microservice of HandSpy.

Development

To start your application in the dev profile, run:

./gradlew

For further instructions on how to develop with JHipster, have a look at [Using JHipster in development][].

Building for production

Packaging as jar

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

./gradlew -Pprod clean bootJar

To ensure everything worked, run:

java -jar build/libs/*.jar

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

For more information, refer to the [Running tests page][].

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.

For example, to start a postgresql database in a docker container, run:

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

To stop it and remove the container, run:

docker-compose -f src/main/docker/postgresql.yml down

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 User Authentication and Authorization (UAA) microservice.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published