| Main | Develop |
|---|---|
Case management web application for Computer-Assisted Personal Interviewing (CAPI)
In order to run the application properly, you need define in a .env.local file these variables.
VITE_QUEEN_URL=
VITE_PEARL_API_URL=
VITE_PEARL_AUTHENTICATION_MODE=
VITE_KEYCLOAK_CLIENTID=
VITE_KEYCLOAK_REALM=
VITE_KEYCLOAK_URL=
VITE_KEYCLOAK_ROLES_ALLOW_LIST=
podman compose --env-file .env.docker --profile stack up -d
Make sure sure your .env.local match your .env.docker
Kill and unmount containers
podman compose --env-file .env.docker --profile stack down -v
Beware of old local front images, clear them before testing.
Install chromium
npx playwright install chromium
Launch services related to playwright testing with podman. It will build a front image of this app as we specically need to test on builded version since service workers do no work the same way in a local dev server.
You might need to set proxies in Dockerfile, do not push them !
podman compose --env-file .env.docker --profile playwright up -d
Run tests
npx playwright test --ui-port=8888 --ui-host=localhost