Skip to content

This project is the backend for my blog that is on my personal portfolio. This links to a MongoDB database that stores my blog posts.

Notifications You must be signed in to change notification settings

Dylancorbus/blog-mean-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-mongodb-setup

It's common for Express developers to define routes in a separate file from the main Express app (app.js or server.js). Although our connection pooling blog post teaches developers to reuse a database connection, it's not clear how to implement database connection sharing across multiple files. This is a simple example that demonstrates how to set up MongoDB connections in an Express app so that the database connection can be used across multiple files.

About

This project is the backend for my blog that is on my personal portfolio. This links to a MongoDB database that stores my blog posts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published