Fullstack CourseLearn by building
Back to roadmap

Week 2 — PostgreSQL & TypeORM

Learn SQL first, then connections (pool/SSL), then TypeORM entities, repos, migrations, seeds, relations, and transactions — then ship Notes P2 as this week’s mini-project.

End-of-week mini-project · practice only

Notes API — Postgres + TypeORM (P2)

Persist Notes with entities, migrations, seed, and a User↔Note relation (synchronize: false).

Definition. Week 2’s mini-project is Notes P2: PostgreSQL persistence via TypeORM with reviewed migrations and seed data.

In simpler words. Replace in-memory habits with real tables. Prove it with the P2 grader.

Deliverables

  • Note + User entities; author ManyToOne
  • Migration + seed; synchronize false in AppModule and data-source
  • List loads author without N+1

Acceptance checklist

- [ ] SQL/Postgres refreshers under /resources if needed
- [ ] Migration reviewed before run
- [ ] pnpm course:validate-milestone be-notes-p2 is green
- [ ] Open topic be-notes-p2 for full acceptance detail

Tips

  • Never turn synchronize true “just for practice”.
  • W3Schools SQL + PostgreSQL links are on /resources.