Event management, built as small microservices.
Organizers publish events. Attendees register. Capacity never oversells.
Qeue is a Java and Spring event-management platform for organizers and attendees. It is a learning portfolio project built as a small microservice system.
The product goal is simple: organizers can build and publish events, attendees can register without overselling capacity, and organizers can run basic event operations such as attendee management, check-in, analytics, notifications, and surveys.
- Current Feature Scope
- Architecture
- How It Works
- Repository Layout
- Tech Stack
- Prerequisites
- Run The Full Local App
- Run The UI In Vite Dev Mode
- Run Services Individually
- Verification
- API Contracts
- Local Kubernetes
- Configuration Notes
- CI
- Recent Additions
The active implementation covers the full event-platform scope:
- Event builder fields: format, category, banner image, venue, timezone, start and end time, capacity, and a draft, publish, and cancel lifecycle.
- Registration questions and stored attendee answers.
- Registration types with per-type capacity enforcement.
- Agenda, sessions, and speakers.
- Organizer attendee list with status, type, and search filters, sorting, registration detail data, and CSV export.
- Ticket-code check-in with hashed ticket codes.
- Notification templates and notification logs for registration and check-in events.
- Event analytics: capacity, confirmed and cancelled registrations, available seats, check-ins, no-shows, and a per-type breakdown.
- Post-event survey definitions and attendee survey submissions.
- OpenAPI and AsyncAPI contracts for the HTTP APIs and RabbitMQ event messages.
Public event pages show total capacity. Remaining capacity is available to organizers through analytics. It is not exposed on public event detail because registration capacity is owned by registration-service, and the project avoids cross-service database reads.
Qeue is a set of small Spring Boot services behind a single API gateway, plus a React browser client. Services own their own PostgreSQL databases and never read each other's tables. They share state through RabbitMQ events backed by transactional outbox tables.
All active runtime code lives under services/ and web-client/.
| Component | Port | Responsibility |
|---|---|---|
services/identity-service |
4001 |
User registration, login, BCrypt password hashing, JWT issuing, and /api/auth/me. |
services/gateway-service |
8080 |
Browser-facing API gateway, JWT validation, role checks, and downstream proxy routing. |
services/event-service |
4000 |
Event lifecycle, event setup, registration-question definitions, registration-type definitions, speakers, sessions, surveys, and the event outbox. |
services/registration-service |
4002 |
Registration correctness, event inventory projection, registration answers, tickets, check-in, attendee lists, CSV export, analytics, survey submissions, and the registration outbox. |
services/notification-worker |
4003 |
RabbitMQ notification consumer, template rendering, notification logs, and optional MailHog SMTP delivery. |
web-client |
Compose 3000, Vite 5173 |
React and Vite browser UI for public browsing, auth, organizer workflows, attendee registration, tickets, check-in, analytics, and surveys. |
Two flows are worth understanding before reading the code.
- The browser talks only to the gateway at
http://localhost:8080. It never calls the backend services directly. - The gateway validates the JWT, checks the caller's role, and proxies the request to the correct downstream service.
- Each service trusts the gateway for identity and role context instead of trusting raw user-supplied headers.
This keeps the browser pointed at one API origin and keeps authentication logic in one place.
Services do not read each other's databases. When something happens in one service that another service needs to know about, the producing service writes the change and an event row to its own outbox table in the same database transaction. A publisher then forwards outbox rows to a RabbitMQ topic exchange.
event-servicepublishes event lifecycle and setup changes through its outbox.registration-servicekeeps a local projection of event inventory from those events, enforces capacity locally, and publishes its own registration and check-in events through its outbox.notification-workerconsumes registration and check-in events, renders a notification template, writes a notification log, and optionally delivers email to MailHog.
The transactional outbox makes event publication durable, so a crash between the database write and the broker publish does not silently drop an event.
qeue/
services/ Active Spring Boot services
identity-service/
gateway-service/
event-service/
registration-service/
notification-worker/
web-client/ React and Vite browser UI
contracts/ API and event contracts
openapi/ HTTP API specs (identity, event, registration)
asyncapi/ RabbitMQ event message specs
api-requests/ Manual HTTP request examples per service
infra/ Local Docker Compose stack and init scripts
deploy/k8s/ Kubernetes manifests with Kustomize overlays
.env.example Local-only credentials and ports template
- Java 21 and Spring Boot 4 for the backend services.
- Spring MVC for the HTTP APIs.
- Spring Security for stateless JWT-protected gateway and identity routes.
- Spring Data JPA and Flyway for relational persistence and migrations.
- PostgreSQL 16 for the local service databases.
- H2 for most fast service tests, and Testcontainers PostgreSQL for registration concurrency tests.
- RabbitMQ topic exchange plus transactional outbox tables for cross-service event propagation.
- React 19, TypeScript, Vite, Tailwind CSS, and React Router for the UI.
- Docker Compose for the full local developer stack.
- Kubernetes manifests with Kustomize for local deployment shape validation.
- MailHog for local email inspection when notification delivery is enabled.
Why these tools:
- Docker Compose gives one command to run the complete local platform.
- Kubernetes manifests document the deployable service shape without requiring Kubernetes for daily development.
- RabbitMQ plus the outbox keeps event publication durable enough for a microservice learning project.
- Flyway keeps schema changes explicit and repeatable across local, test, and container runs.
- Gateway-owned JWT validation keeps browser clients pointed at one API origin and prevents direct trust in user-supplied service headers.
- Java 21.
- Docker with Docker Compose.
- Node 22 LTS or newer, and npm.
kubectl, only if validating or applying Kubernetes manifests.kind, only if running the Kubernetes walkthrough.
From the repository root:
cp .env.example .env
docker compose -f infra/docker-compose.yml up --buildOpen the UI:
http://localhost:3000
Useful local URLs:
- Web UI:
http://localhost:3000 - Gateway API:
http://localhost:8080 - RabbitMQ management:
http://localhost:15672 - MailHog:
http://localhost:8025
Local seed accounts:
| Role | Password | |
|---|---|---|
| Organizer | organizer@qeue.local |
LocalDevPassword1! |
| Attendee | attendee@qeue.local |
LocalDevPassword1! |
Stop the stack:
docker compose -f infra/docker-compose.yml downReset local database and broker volumes:
docker compose -f infra/docker-compose.yml down -vUse this when you want hot reload while the backend services run in Compose:
docker compose -f infra/docker-compose.yml up --build postgres rabbitmq mailhog identity-service event-service registration-service notification-worker gateway-service
cd web-client
npm install
VITE_API_BASE_URL=http://localhost:8080 npm run devOpen:
http://localhost:5173
Start shared infrastructure first:
docker compose -f infra/docker-compose.yml up postgres rabbitmq mailhogThen run services from their folders under services/. Example:
cd services/event-service
EVENT_DB_URL=jdbc:postgresql://localhost:5432/qeue_event \
EVENT_DB_USERNAME=qeue_event_user \
EVENT_DB_PASSWORD=change-me-local-only \
RABBITMQ_HOST=localhost \
./mvnw spring-boot:runUse the same pattern for:
services/identity-serviceservices/registration-serviceservices/notification-workerservices/gateway-service
Required local secrets and connection values are listed in .env.example.
Backend service tests:
cd services/identity-service && ./mvnw test
cd services/event-service && ./mvnw test
cd services/registration-service && ./mvnw test
cd services/gateway-service && ./mvnw test
cd services/notification-worker && ./mvnw testThe services/registration-service tests require Docker because they use Testcontainers PostgreSQL for capacity and concurrency checks.
Frontend checks:
cd web-client
npm test
npm run buildKubernetes manifest validation:
kubectl kustomize deploy/k8s/overlays/local- Identity API:
contracts/openapi/identity-api.yaml - Event API:
contracts/openapi/event-api.yaml - Registration API:
contracts/openapi/registration-api.yaml - Platform events:
contracts/asyncapi/event-platform-events.yaml
Manual request examples live in api-requests/.
Build images, load them into kind, apply manifests, and port-forward the web client:
docker build -t qeue/identity-service:local services/identity-service
docker build -t qeue/event-service:local services/event-service
docker build -t qeue/registration-service:local services/registration-service
docker build -t qeue/notification-worker:local services/notification-worker
docker build -t qeue/gateway-service:local services/gateway-service
docker build -t qeue/web-client:local web-client
kind load docker-image qeue/identity-service:local qeue/event-service:local qeue/registration-service:local qeue/notification-worker:local qeue/gateway-service:local qeue/web-client:local
kubectl apply -k deploy/k8s/overlays/local
kubectl -n qeue-local get pods
kubectl -n qeue-local port-forward svc/web-client 3000:80Open http://localhost:3000.
.env.examplecontains local-only dummy credentials and ports.- Keep real secrets out of Git.
IDENTITY_JWT_SECRETmust be at least 32 bytes.RABBITMQ_LISTENER_ENABLED,EVENT_OUTBOX_PUBLISHER_ENABLED, andREGISTRATION_OUTBOX_PUBLISHER_ENABLEDare enabled in Compose so the full platform runs end to end. They default tofalsein.env.example.MAILHOG_ENABLED=truesends rendered notification emails to MailHog. Otherwise notification logs are still recorded with statusSKIPPED.
CI is not enabled in this repository yet. A GitHub Actions workflow draft is maintained locally and will be wired in later. Once enabled it will run:
- Maven tests for all active backend services.
- npm test and a production build for
web-client. - Docker image builds.
- Kubernetes Kustomize validation.
git diff --check.
Changes from the July 2026 simplification and hardening pass:
- Removed the unused gRPC surface in
registration-service(stub service, proto, six build dependencies, port9001across Compose, Kubernetes, and.env.example). It duplicated the REST API and had no callers. - Outbox publishers now retry transient broker failures. Previously any publish error marked the message
FAILEDpermanently, silently dropping the event. Transient AMQP failures now stayPENDINGand retry on the next scheduled run; only permanently unroutable messages (unknown event type) goFAILED. Applies to bothevent-serviceandregistration-service. - Gateway timeouts and error mapping. The proxy
RestTemplatenow has a 3s connect / 15s read timeout so a hung downstream service cannot pin gateway threads indefinitely; timeouts surface as504instead of a generic502. - Gateway passes
Content-Dispositionthrough, so the registrations CSV export keeps its server-provided filename. - Web client UI theme refresh built on Tailwind CSS.
- Web client session expiry handling. A
401on an authenticated request now clears the stored token and flips the UI to logged-out, instead of leaving a stale session where every call fails until a manual reload. - Route-driven document titles in the web client, so browser tabs and history show the page (
Browse events | Qeue) rather than one static title. - Notification template rendering fetches the active template once per delivery instead of twice.
- Registration idempotency keys use
crypto.randomUUID()instead ofMath.random, making collisions practically impossible.