CodeWithJay

Building a Products REST API in NestJS: From Database to JSON Response: E-4

23 min525 views

Building a Products REST API in NestJS: From Database to JSON Response: E-4

About this video

We have a products table sitting in Postgres. Now it is time to expose it to the world through a clean REST API built in NestJS.

This episode covers creating a NestJS resource for products: the module, service, and controller. You will write the Prisma queries, shape the response, and hit a real URL to get back real product JSON. Jay also walks through NestJS dependency injection as it applies here so you understand the pattern, not just the code.

Keep learning NestJS

Every free video, mini course and project-based course on NestJS in one place, in the order that makes sense.

All videos