NestJS configuration: Everything you need to know. NestJs course [part 4.]

Опубликовано: 24 Март 2026
на канале: Tech With Piotr
4,385
120

In the fourth episode of nestJs crash course, I will teach you how to use configuration files for setting the environment variables. As a bonus, I will show you one very useful technique, used in many production systems. 

Introduction: 00:00
Installation of config module: 00:53
Using config service in main.ts: 01:58
How to use config service together with typeOrm config: 03:53
How to validate environment variables: 05:41

Starting code: https://github.com/piotrmol/nestjs-re...
Final code: https://github.com/piotrmol/nestjs-re...

🎓 Enhance your learning journey! Visit my second channel, for valuable tips & tricks on mastering academics:    / @piotrteaches   👨‍🎓👩‍🎓