Skip to content

Add backend, infrastructure, CI, and docs for Event Registration & Ticketing System - #1

Merged
ezekielelvis merged 2 commits into
mainfrom
feature/serverless-backend-infra-scaffold
Aug 1, 2026
Merged

ezekielelvis merged 2 commits into
mainfrom
feature/serverless-backend-infra-scaffold

Conversation

@ezekielelvis

Copy link
Copy Markdown
Contributor

Summary

  • Serverless Event Registration & Ticketing System backend (Lambda/TS) and AWS CDK infrastructure (6 stacks: Database, Auth, Notifications, Api, Monitoring, Budget), per the architecture in docs/architecture.md.
  • Auth via Cognito (Admin/Organizer/User groups), event approval workflow with admin-review emails, registration with organizer-supplied ticket links, SNS -> SES notification pipeline.
  • Security: Zod input validation, HTML-escaped outbound email, least-privilege IAM per Lambda, API Gateway throttling (baseline + tighter on /auth/*).
  • Monitoring: CloudWatch alarms (per-Lambda errors, DynamoDB throttles, API error rate >5%), custom EMF metrics (failed registrations, approvals/rejections), dashboard, AWS Budgets Free Tier guardrail.
  • CI: .github/workflows/ci.yml runs lint, typecheck, unit tests, and cdk synth on every push/PR (GitHub Flow, see docs/branching-strategy.md).
  • frontend/ is a placeholder only — design/build intentionally deferred.

Test plan

  • pnpm run lint — clean
  • pnpm run typecheck (backend + infrastructure) — clean
  • pnpm test — 38/38 unit tests passing (services, repositories, lib)
  • pnpm run synth — all 6 CDK stacks synthesize successfully
  • CI workflow run on this PR (verify green in Actions tab)
  • Manual: deploy to a dev AWS account and exercise the API end-to-end (not done in this session — no AWS deployment was performed)

🤖 Generated with Claude Code

…cketing System

Serverless event registration/ticketing REST API on AWS, built as a pnpm
monorepo:

- backend/: Lambda handlers (TS) for auth, events, admin review, and
  registrations, layered as handlers -> services -> repositories, with
  Zod validation, typed errors, Cognito JWT auth-context helpers, and
  Powertools logging/metrics/tracing. 38 unit tests covering business
  rules (capacity enforcement, ownership checks, review workflow, HTML
  escaping in outbound email).
- infrastructure/: AWS CDK (TS) app with six stacks — Database
  (DynamoDB), Auth (Cognito), Notifications (SNS -> Lambda -> SES),
  Api (HTTP API + JWT authorizer + throttling), Monitoring (CloudWatch
  alarms/dashboard incl. >5% error-rate alarm), Budget (AWS Budgets
  Free Tier guardrail).
- .github/workflows/ci.yml: lint, typecheck, unit tests, cdk synth on
  every push/PR, per GitHub Flow (docs/branching-strategy.md).
- docs/: architecture, data model, API reference, security patterns,
  and ADRs for the major design decisions.
- frontend/: placeholder only, design pending further instructions.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ezekielelvis! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

gh api .../branches/main/protection 403s on this private repo under the
free GitHub plan (needs Pro or public visibility). Documented the actual
state and the exact command to run once that's available, instead of
claiming a rule that isn't actually enforced.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@ezekielelvis
ezekielelvis merged commit 3289470 into main Aug 1, 2026
2 checks passed
@ezekielelvis
ezekielelvis deleted the feature/serverless-backend-infra-scaffold branch August 1, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant