ai-assisted-todolist

End-to-end stack#

The whole application in containers — Keycloak, the Go backend (#556) with DynamoDB Local and SeaweedFS for S3, and the frontend behind httpd — which is what the Playwright suite runs against (deployment/docker/docker-compose.e2e.serverless.yml). Both images have to exist first:

docker build -t taskfest-serverless:e2e \
  --build-arg GO_VERSION="$(sed -n 's/^go \([0-9.]*\).*/\1/p' serverless/go.mod)" serverless
cd frontend && docker build -f docker/Dockerfile -t taskfest-frontend:e2e . && cd ..

docker compose -f deployment/docker/docker-compose.e2e.serverless.yml up -d --wait

cd e2e && npm ci && npx playwright install chromium && npx playwright test

Both builds are for the machine they run on, so on an Apple-silicon Mac the images are arm64 and need no Rosetta.

Here the app is on http://localhost:3000 with sign-in enabled against Keycloak on http://localhost:8082 (admin console admin / admin), so you can also drive it by hand:

Account Password Email
gunnar gunnar gunnar@example.com
lasse lasse lasse@example.com

Each account owns its own tasks, so signing in as the other is the quickest way to see the ownership rules at work. Signing out of the app does not sign you out of Keycloak — to switch accounts for real, use a private window or clear cookies for localhost:8082. This is by design; see authentication.md.

With Podman, build the frontend image with podman build. A Docker CLI whose builder uses the docker-container driver keeps the result in its build cache without loading it, and the stack then quietly starts whatever older taskfest-frontend:e2e it finds.

Always tear it down when finished:

docker compose -f deployment/docker/docker-compose.e2e.serverless.yml down -v

e2e-serverless.yml runs this stack on every pull request that touches the Go backend, the frontend, the suite or Keycloak, as e2e (Go backend). Until #559 e2e.yml ran the suite against the Quarkus backend's stack too, with PostgreSQL and LocalStack; the tag pre-serverless keeps it.

See testing.md for what the suite covers and how to run it interactively.