If you use homebrew, you can simply execute this to to install all required
and optional
dependencies:
brew bundle
If you decided to install direnv, you have to hook it onto your shell as
described here. E.g. for ZSH add this
to ~/.zshrc:
eval "$(direnv hook zsh)"
S3 Credentials for Lookup Table Initialization
The lookup table initialization in your local environment will be performed with data provided by a s3 bucket. Read here on how to retrieve credentials for it.
Note: If you wish to migrate documentation units, use the instructions
in run_migration_locally.md
Development
Run the whole stack including migration (initialization) inside docker:
./run.sh dev
If you don’t want to watch the log stream but let Docker perform health checks until everything is
up, use detached
mode:
./run.sh dev -d
./run.sh dev --detached
To run the frontend stack only (without backend and initialization) run:
./run.sh dev -n
./run.sh dev --no-backend
To run the only required stack setup (without frontend and frontend) run:
./run.sh dev -n -f
./run.sh dev --no-backend --no-frontend
When choosing the no-backend variant, checkout the backend manual on how to run the backend
stand-alone without docker. The easiest way would be to start the
backend utilizing Spring Boot developer tools
so changes in the Java sources will be reflected without manually restarting:
cd backend
SPRING_PROFILES_ACTIVE=local ./gradlew bootRun
Note: Similarly, the frontend is served from Vite
with HMR
Overall docker compose spins up a reverse proxy (traefik) which listens on port 80. Therefore the application is
available at http://127.0.0.1. If you get a bad gateway error make sure your firewall is not messing with you. On
Ubuntu sudo ufw disable might do the trick. You may setup a certain firewall rule. Overall your milage may vary.
Note
When first starting the development server, dependencies will be installed automatically. This
includes supported
browsers for E2E and a11y testing through playwright. Should that fail, you
can install them manually.
To see logs of the containers, use e.g.
docker compose logs # for all
docker compose logs frontend # for specific services
To stop the whole environment:
./run.sh down
Read the component individual documentation to figure out how to run them individually:
Opt in to CI posting notifications for failing jobs to a particular Slack channel by using the org-secret with the name
SLACK_BOT_TOKEN and setting the SLACK_CHANNEL_ID.
RIS Caselaw
Prerequisites
You need (or may want) the following CLI tools. For UNIX users, there is a prepared
Brewfile, see below.Necessary tools:
Backend only:
Optional, but recommended tools:
If you use
homebrew, you can simply execute this to to install all required and optional dependencies:If you decided to install
direnv, you have to hook it onto your shell as described here. E.g. for ZSH add this to~/.zshrc:S3 Credentials for Lookup Table Initialization
The lookup table initialization in your local environment will be performed with data provided by a s3 bucket. Read here on how to retrieve credentials for it.
Then, store the credentials in 1Password:
Getting started
To get started with development, run:
This will install a couple of Git hooks which are supposed to help you to:
Also, it creates a new
.envfile containing the secrets. You will be asked to authorize requests to 1Password.Lookup Tables Initialization
The caselaw application requires the initialization of lookup tables by the migration application image.
The following command will migrate the minimally required data (refdata and juris tables):
Make sure the latest ris data migration image is in compose.yaml and then run:
Development
Run the whole stack including migration (initialization) inside docker:
If you don’t want to watch the log stream but let Docker perform health checks until everything is up, use detached mode:
To run the frontend stack only (without backend and initialization) run:
To run the only required stack setup (without frontend and frontend) run:
When choosing the no-backend variant, checkout the backend manual on how to run the backend stand-alone without docker. The easiest way would be to start the backend utilizing Spring Boot developer tools so changes in the Java sources will be reflected without manually restarting:
Overall docker compose spins up a reverse proxy (traefik) which listens on port 80. Therefore the application is available at http://127.0.0.1. If you get a
bad gatewayerror make sure your firewall is not messing with you. On Ubuntusudo ufw disablemight do the trick. You may setup a certain firewall rule. Overall your milage may vary.To see logs of the containers, use e.g.
To stop the whole environment:
Read the component individual documentation to figure out how to run them individually:
Deployment
The pipeline performs the deployment through GitOps using ArgoCD ( see example pipeline deploy step definition):
Tests
You can run both frontend and backend tests simultaneously with the following commit:
API Documentation
To access the api documentation, start the application and navigate to
/api/docs.htmlor/api/docs.jsonin your browser.Architecture Decision Records
Architecture decisions are kept in the doc/adr directory and are managed with adr-tools.
Slack notifications
Opt in to CI posting notifications for failing jobs to a particular Slack channel by using the org-secret with the name
SLACK_BOT_TOKENand setting theSLACK_CHANNEL_ID.Reports
All reports will be published here https://digitalservicebund.github.io/ris-reports/