In this video, we will look into the setup & different types of configuration to connect with the MongoDB database using the Mongoose and @nestsjs/mongoose packages in the NestJS framework.
We will cover the MongooseModule and its methods like forRoot and forRootAsync to create the configuration to establish the connection to the MongoDB instance either running locally or on a remote server.
▬▬▬▬▬▬ 🔗 Links ▬▬▬▬▬▬
► GitHub (Source code): https://bit.ly/3BPPu7S
► NestJS - Dynamic Modules : • NestJS #17 - Modules | Dynamic Modules | C...
► NestJS - Env Variables Based Configuration : • NestJS #36 - Configuration | Env Variables...
► NestJS - Dependency Injection | Factory Provider : • NestJS #13 - Dependency Injection | Factor...
▬▬▬▬▬▬ 📚 CHAPTERS ▬▬▬▬▬▬
00:00 - Introduction
01:03 - MongoDB Setup & Mongoose Package
03:20 - MongoDB Connection - MongooseModule & forRoot method
07:41 - Securing Database Creds - env File
09:36 - forRootAsync - using "useFactory"
14:49 - forRootAsync - using "Mongoose Config Service"
18:26 - Separate Database Module
20:17 - Closing notes
▬▬▬▬▬▬ 🔖 RECOMMENDED COURSES ▬▬▬▬▬▬
🎬 Angular In-Depth (Hindi) - https://bit.ly/34nHrBh
🎬 Angular Architecture - • 1. Angular Architecture | Angular In Depth...
🎬 NestJS Framework | Backend Development (Hindi) - https://bit.ly/3titPk3
🎬 RxJS - The Practical Guide (Hindi) - https://bit.ly/3GBcXsf
🎬 RxJS - Promise vs Observable | A depth comparison - • 5. RXJS - Promise vs Observable | A depth ...
🎬 RxJS - Introduction to Reactive programming - • 1. RXJS - Introduction to Reactive program...
▬▬▬▬▬▬ CONNECT WITH ME 👋 ▬▬▬▬▬▬
🐦 Twitter: / akacomputerbaba
🏠 Discord: https://bit.ly/3Js25iy
👓 GitHub: https://github.com/cistroncoder
📧 Email: [email protected]
💙 Join this channel
/ computerbabaofficial
▬▬▬▬▬▬ 🎻 MUSIC ▬▬▬▬▬▬
🎵 Fresh Start - Joakim Karud
https://freesound.org
▬▬▬▬▬▬ # HASHTAGS ▬▬▬▬▬▬
#AmazingNestjs #nestjs #computer_baba #mongodb #mongoose #pipes #nestjs_pipes #data_transformation #microservices #dependency_injection #ioc_container #routing #nestjs_project #nodejs #rest_api #http #expressjs #fastify #graphql #mongodb #sql #typeorm #microservices #backend_development #javascript #typescript #rxjs #json