Express and Mongoose

To initialize the database connection, we are pulling in the MONGODB_URI that we have defined inside the .env file. We are feeding this to mongoose.connect() to initialize the database connection. Once MongoDB has been connected, we execute setRoutes() to initialize the routes and dispatch a static message if any reaches http://localhost:3000/ directly during development.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.22.181.47