Nest.js REST API with CORS, Rate Limits, Server Logs, & Exception Filters @DaveGrayTeachesCode
Nest.js REST API with CORS, Rate Limits, Server Logs, & Exception Filters  @DaveGrayTeachesCode
Uploaded December 2023 | Updated November 2026, 3 hours ago
Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap

Complete your Nest.js REST API with CORS, Rate Limits, Server Logs, & Exception Filters. In this tutorial, we will set up the extras you need for your REST API before you deploy. This is the final lesson in the Nest.js for Beginners tutorial series.

πŸ’– Support me on Patreon ➜ patreon.com/davegray

⭐ Become a full-stack web dev with Zero To Mastery Courses:
- The Complete Node.js Developer: bit.ly/CompleteNodeJS
- Advanced React: bit.ly/AdvReactDev
- Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr

🚩 Subscribe ➜ bit.ly/3nGHmNn

πŸ“¬ Course Updates ➜ https://courses.davegray.codes/

❓ Questions - Please post them to my Discord ➜ discord.gg/neKghyefqh

β˜• Buy Me A Coffee ➜ buymeacoffee.com/davegray

πŸ‘‡ Follow Me On Social Media:
GitHub: github.com/gitdagray
Twitter: twitter.com/yesdavidgray
LinkedIn: linkedin.com/in/davidagray

πŸ”— Source Code: github.com/gitdagray/nestjs-course

πŸ”— Playlist for this NestJS Series: youtube.com/playlist?list=PL0Zuz27SZ-6MexSAh5x1R3rU6Mg2zYBVr

Nest.js REST API with CORS, Rate Limits, Server Logs, & Exception Filters - Series Part 6

(00:00) Intro
(00:05) Welcome
(00:27) Starter Code
(00:45) Lesson Goals
(01:16) Set a Global Prefix
(02:29) Enable CORS
(05:11) Rate Limiting
(15:46) Create a Logger Service
(26:12) How to Apply the Logger Globally
(28:21) How to Apply the Logger to a Class
(31:08) Create an All Exceptions Filter
(42:27) Logging Errors
(48:03) More Prisma Error Types
(48:31) nestjs-prisma library
(48:59) Wrap-up

πŸ“š Tutorial References:
πŸ”— NestJS Official Site: nestjs.com
πŸ”— Neon: https://neon.tech/
πŸ”— Prisma: prisma.io
πŸ”— nestjs-prisma: https://nestjs-prisma.dev/

Was this Nest.js REST API with CORS, Rate Limits, Server Logs & Exception Filters helpful? If so, please share. Let me know your thoughts in the comments.

#nestjs #rest #api
Nest.js REST API with CORS, Rate Limits, Server Logs, & Exception FiltersAmazing New VSΒ Code AIΒ CodingΒ AssistantΒ with Open Source ModelsDont Make These Next.js MistakesNext.js Auth in Under 60 Seconds 🏁Do This BEFORE You Submit a GitHub IssueType-Safe .env Validation with Envalid | Environment VariablesHow to Create a Web Application in Python using FlaskNest.js Tutorial for BeginnersHow to Mock a REST API Server for Testing with Jest & React Testing LibraryWhat is ISR in Next.js? πŸ€”Python f-Strings - Advanced String Formatting tutorial for beginnersπŸ€” Why So Many Tailwind Haters?
Dave Gray |

Nest.js REST API with CORS, Rate Limits, Server Logs, & Exception Filters

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER