In this video we will learn about the benefits of having a type-safe REST API. We will talk about how to combine a ReactJS frontend client with a NestJS API into a single monorepo using turborepo. We will then construct a type-safe CRUD API using ts-rest and then consume that on the client using Tanstack React Query utilizing queries, mutations, and caching. Basically everything you need to jumpstart a highly configurable fullstack application with the best developer experience!
00:00 - 01:25 - Intro
01:25 - 04:25 - End-to-end type-safety example
04:25 - 07:30 - What it would look like without a monorepo and type-safety
07:30 - 12:17 - Project and applications setup
12:17 - 19:21 - Internal package setup
19:21 - 25:28 - Defining the API contract and schema
25:28 - 34:52 - CRUD API implementation
34:52 - 50:00 - Client implementation with React Query
50:00 - 53:00 - Outro