Brainberg
CRUD & DB Modelling with NestJS, Drizzle ORM & PostgreSQL
Software EngineeringWorkshopFreeOnline

CRUD & DB Modelling with NestJS, Drizzle ORM & PostgreSQL

Sat 23 May · 16:30
< 50 attendees

About this event

What You Will Build
A fully containerized, relational REST API that manages departments, employees, employee profiles, and projects — wired together through all three relationship cardinalities found in real-world business data. By the end of the session, you will have a running API, a migrated PostgreSQL database, seeded demo data, and a test request collection covering every endpoint.

Learning Outcomes
By the end of this workshop, you will be able to:

  1. Design a normalized relational schema with 1:N, 1:1, and N:N relationships in Drizzle ORM.
  2. Choose the correct cascade policy for each FK and explain the tradeoff.
  3. Write type-safe relational queries that avoid N+1 without exposing ORM internals to API clients.
  4. Design REST routes that follow a consistent, idiomatic convention for related resources.
  5. Validate incoming data at the HTTP boundary with zod and map DB-level constraint violations to appropriate HTTP status codes.
  6. Implement paginated, sortable, filterable list endpoints with a standard response envelope.
  7. Manage the full migration and seed lifecycle with Drizzle Kit.

Source: meetup