Backend for HumLib - The Human Library in Computer Science
We use GitHub flow as git branching strategy. It is based on the 6 principles below.
For commit messages, we use GitMoji. There is a handy IntelliJ plugin to help you choose the
right emoji. Other than that, a commit message should follow the pattern :emoji: Short description (#:issue number:)
.
For automatically using Java 17 when entering this repository, simply set sdkman_auto_env=true
in ~/.sdkman/etc/config
This makes sdkman switch to the java version defined in .sdkmanrc
automatically when you cd
into this repo.
You need to have a pull request for your branch to have the defined GitHub workflows executed automatically. On push to 'main', so basically when a pull request is merged, another run is triggered for 'main'.
The pipeline builds the application and executes tests. It then uploads coverage data and test results as artifacts. Both are posted as a comment to PRs. Unit test results can also be reviewed as a dedicated check run. Code coverage results are uploaded to Codacy
We use OASv3.1 to define humlib-be's API. To edit the API specification, please use Postman. Contact one of the team members to get access.
The API can be generated by running ./mvnw openapi-generator:generate
or the appropriate run config in IntelliJ. The generator does not support OpenAPI 3.1, yet.
Anyway, the generated files are currently not in use.
export HUMLIB_BE_HOME="<path>"
source ${HUMLIB_BE_HOME}/docker/humlib.profiles
HUMLIB_BE_HOME=$(pwd) source docker/humlib.profiles
from the repository roothumlib-be-start
or humlib-be-start-min
humlib-be-stop
or stop and delete all volumes via humlib-be-delete
version: 8.0.0
humlib-be-elasticstack-start
humlib-be-elasticstack-start-min
humlib-be-elasticstack-stop
or stop and delete all volumes
via humlib-be-elasticstack-delete
*.log
-files from the directory humlib-be/logs
humlib-be-keycloak-start
humlib-be-keycloak-stop
or stop and delete all volumes
via humlib-be-keycloak-delete
humlib-be-keycloak-export
, wait until a log
message Resuming server
appears, and hit Ctrl-cFor observing the state of the application, you can use Spring's Actuator endpoints offered at port 8081: