The web application manages a list of coffee shops.
The project is fully built using JeKa with a template containing the build logic.
This template is designed for building Spring Boot projects, with optional ReactJS apps. It handles tasks like testing with coverage, building the ReactJS app, running SonarQube analysis, and creating a Docker image.
End-to-end tests are located in the e2e
package under the src/test/java
directory. The e2e
method manages the deployment and undeployment of the application using containers.
jeka.properties
jeka.version=0.11.21
jeka.java.version=21
jeka.kbean.default=project
# Use build template defined at https://github.com/jeka-dev/demo-build-templates
jeka.classpath=dev.jeka:template-examples:0.11.20-1
@template=
jeka intellij: sync
Help on template KBean:
jeka template: --doc
Create a bootable jar, containing the client app,:
jeka pack
Deploy the application in Docker then run end-to-end tests:
jeka e2eTest
Run Sonarqube analysis, on both Java and JS:
jeka checkQuality
Run the bootable jar:
jeka runJar
Create a Docker image:
jeka docker: build
Create a Spring-Boot native Docker image:
jeka docker: buildNative
For CI/CD, we can run jeka pack e2eTest checkQuality
for instance.