MongoDB Flashcards
What is the general Project Folder Tree for a MERN project?
server/ db conn.js routes record.js server.js config.env app/listings/ public/ src/ App.js App.css index.js
The “server” directory hosts the Express.js server application and of al
In folder tree of a MERN what is the function of
“Db/conn.js ?
Exposes a global connection to the Atlas database by exporting a MongoDB client that any other module can use.
In the MERN project “routes” accomplish what?
Exposes the REST API endpoints and performs their business logic against the Atlas cluster.
server.js is the ….
Is the main entry point for the Express server and configuration initialization.
what is the function of config.env ?
Configuration file holding Atlas connection string details.
Global exposure of the server to connection with the Atlas database is by …
…exporting a MongoDB client that any other module can use.
Routes exposes the ….
…the REST API endpoints and performs their business logic against the Atlas cluster.