Skip to content

feat(backend): migrate the webshop to PostgreSQL and tRPC - #32

Merged
btraintinger merged 4 commits into
mainfrom
feature/21-22-26-5-4/postgres-trpc-backend
Nov 23, 2026
Merged

btraintinger merged 4 commits into
mainfrom
feature/21-22-26-5-4/postgres-trpc-backend

Conversation

@btraintinger

Copy link
Copy Markdown
Owner

Summary

  • Replace the Fastify and JSON backend with Next.js and a typed tRPC API backed by PostgreSQL and Drizzle.
  • Add the schema, initial migration, deterministic catalog seed, and local Compose setup. Port catalog queries and cart validation, including voucher checks and rate limiting.
  • Add backend tests and PostgreSQL-backed PR checks. Update the setup, API, and testing guides.

Related issue

Refs #21, #22, #26, #5, #4

Verification

  • pnpm check passed.
  • All 40 tests passed with local PostgreSQL enabled.
  • The local Turbopack build was blocked when its CSS worker tried to bind a port. The GitHub Actions workflow runs the production build.

@btraintinger btraintinger self-assigned this Nov 21, 2026
@rweilch

rweilch commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Good

@rweilch rweilch left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good

@btraintinger
btraintinger merged commit 0b12047 into main Nov 23, 2026
2 checks passed
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.

2 participants