Web Dev Roadmap for Beginners (Free!): https://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.
⭐ Become a full-stack web dev with Zero To Mastery Courses:
- The Complete Node.js Developer: https://bit.ly/CompleteNodeJS
- Advanced React: https://bit.ly/AdvReactDev
- Junior to Senior Dev Roadmap: https://bit.ly/WebDevRoadmap-JrtoSr
Subscribe https://bit.ly/3nGHmNn
Course Updates https://courses.davegray.codes/
Questions - Please post them to my Discord https://discord.gg/neKghyefqh
Buy Me A Coffee https://www.buymeacoffee.com/davegray
Follow Me On Social Media:
GitHub: https://github.com/gitdagray
Twitter: https://twitter.com/yesdavidgray
LinkedIn: https://www.linkedin.com/in/davidagray/
Source Code: https://github.com/gitdagray/nestjs-course
Playlist for this NestJS Series: https://www.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: https://nestjs.com
Neon: https://neon.tech/
Prisma: https://www.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