In this series you will learn how to build a REST API using NodeJS and MongoDB.
In this video you will learn how to clean up the app.js file and putting all Mongoose connection related stuff in a separate file.
You will learn how to handle mongoose connection events like connected event, disconnected event, and error event.
You will also learn how to use process.on(‘SIGINT’) to terminate a nodejs application.
Github (REST API source code): https://github.com/trulymittal/Nodejs-REST-API
#mongoose #mongodb #node #nodejs #api