Skip to content

Repository files navigation

Rhea by codbex

Build Status Eclipse License Maven Central

Rhea Edition is the codbex vertical stack for Modeling and Applications. It contains the entity, forms and reports modeling components, the Intent Driven development techniques and tools (the app.intent engine, the Intent Editor and the conversational Builder shell), and the single application stack the generated applications run on - Harmonia UI on a client Java backend.

It is good for Model Driven Architecture related development models.

Run steps

Prerequisites:

  • Export the following variables before executing the steps
    export GIT_REPO_FOLDER='<path-to-the-git-repo>'
    export IMAGE='ghcr.io/codbex/codbex-rhea:latest'
    export CONTAINER_NAME='rhea'

Start using Docker and released image

# optionally remove the existing container with that name
docker rm -f "$CONTAINER_NAME"
docker pull "$IMAGE"

docker run --name "$CONTAINER_NAME" -p 80:80 "$IMAGE"

Start using Docker and local sources

Build the project jar

cd $GIT_REPO_FOLDER
mvn -T 1C clean install -P quick-build

Build and run docker image locally

Prerequisites: Build the project jar

cd "$GIT_REPO_FOLDER/application"

docker build . --tag "$IMAGE"

# optionally remove the existing container with that name
docker rm -f "$CONTAINER_NAME"

docker run --name "$CONTAINER_NAME" -p 80:80 "$IMAGE"

Java standalone application

Prerequisites: Build the project jar

Start the application

cd "$GIT_REPO_FOLDER"

java \
    --add-opens=java.base/java.lang=ALL-UNNAMED \
    --add-opens=java.base/java.lang.reflect=ALL-UNNAMED \
    --add-opens=java.base/java.nio=ALL-UNNAMED \
    -jar application/target/codbex-rhea-*.jar

Start the application in debug with debug port 8000

cd "$GIT_REPO_FOLDER"

export PHOEBE_AIRFLOW_WORK_DIR="$AIRFLOW_WORK_DIR"
java \
    -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 \
    --add-opens=java.base/java.lang=ALL-UNNAMED \
    --add-opens=java.base/java.lang.reflect=ALL-UNNAMED \
    --add-opens=java.base/java.nio=ALL-UNNAMED \
    -jar application/target/codbex-rhea-*.jar

Spring profiles

  • Eclipse Dirigible profiles To activate Eclipse Dirigible, you have to add profiles common and app-default explicitly.
    Example for profile snowflake: SPRING_PROFILES_ACTIVE=common,snowflake,app-default

Run unit tests

cd "$GIT_REPO_FOLDER"
mvn clean install -P unit-tests

Run integration tests

cd "$GIT_REPO_FOLDER"
mvn clean install -P integration-tests

Run all tests

cd "$GIT_REPO_FOLDER"
mvn clean install -P tests

Format the code

cd "$GIT_REPO_FOLDER"
mvn verify -P format

Access the application

  • Open URL http://localhost:80
  • Login with the default credentials username admin and password admin

REST API

http://localhost/swagger-ui/index.html

About

Modelling and Applications Generation Platform

Topics

Resources

Stars

1 star

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages