OpenShoppingList is a mobile-first household shopping checklist application built as a modular monolith. The checklist domain is the core of the system; Willys is an external article search adapter used only when a user wants to add a retailer-backed item snapshot to a list.
- Shared household shopping lists with no accounts or authentication
- Route-based display identity, for example
/anna - Multiple named lists
- Manual list items
- Willys-backed item search with stored snapshot data
- Check and uncheck flows with actor attribution
- Internal domain events with an activity log projection
- PostgreSQL persistence with Flyway migrations
- Docker Compose local stack
- Backend and frontend automated tests
- End-to-end verification script for the main flows
- No authentication or authorization
- No offline mode
- WebSocket-based realtime list updates for active list views
- No template feature yet
- No price totals or price-based sorting
- No retailer catalog ingestion
The backend is a modular monolith with these main modules:
lists: shopping list aggregate, item behavior, use cases, read models, REST APIretailer: retailer-agnostic search port plus the Willys adapteractor: route/header-derived display identitycommon: domain event primitives and shared API error handling
The frontend is a React + TypeScript app with feature-oriented folders:
features/lists: list overview and list detail flowsfeatures/retailer-search: retailer search API accessfeatures/actor: current display-name routing supportshared: API client and typed contractsapp: top-level routing and shell
More detail is in docs/architecture.md and docs/developer-guide.md.
There is intentionally no login. The display name comes from the route:
http://localhost:8081/annameans the current actor isanna- Any display name is accepted
- All actors share the same household data and permissions
The frontend sends the actor as X-Actor-Display-Name when a mutating API call is made.
Prerequisites:
- Docker Desktop or Docker Engine with Compose support
jqif you want to run the verification script
Start the full stack:
docker compose up --build -dServices:
- Frontend: http://localhost:8081/anna
- Backend API: http://localhost:8080/api/lists
- Backend health: http://localhost:8080/actuator/health
- PostgreSQL:
localhost:5432
Stop the stack:
docker compose downStart PostgreSQL separately and set the backend environment variables:
export DB_URL=jdbc:postgresql://localhost:5432/open_shopping_list
export DB_USERNAME=postgres
export DB_PASSWORD=postgres
export SYSTEMBOLAGET_SUBSCRIPTION_KEY=your-systembolaget-keyRun the backend:
cd backend
./mvnw spring-boot:runRun the frontend:
cd frontend
npm install
npm run devThe Vite dev server runs on http://localhost:5173/anna and proxies /api to the backend.
Backend:
cd backend
./mvnw test
./mvnw -DskipTests packageFrontend:
cd frontend
npm test -- --run
npm run buildEnd-to-end verification against the running Docker stack:
./scripts/verify-stack.shThe script verifies:
- frontend route availability
- list creation
- manual item creation
- live Willys search
- adding an external snapshot item
- checking and unchecking an item
- persisted list state retrieval
Willys is isolated behind RetailerSearchPort. The current adapter performs live query-time search and maps the Willys response into a retailer-agnostic result model. When a result is added to a list, the backend stores a snapshot of the article fields needed for later display.
If Willys changes or another retailer is added later, the checklist domain does not need to change.
backend/ Spring Boot modular monolith
frontend/ React + TypeScript app
docs/ Architecture and developer documentation
scripts/ Local verification helpers
- Swedish-only UI text is acceptable for v1
- Willys live search is available anonymously at query time
- Prices are stored as retailer snapshots when available
- The app is a single shared household, not a multi-tenant system