Create a CRUD App with Node and MongoDB

App Foundation

Our application is going to be an MVC inspired Node app.

Note: The slides in the video show the routes.js file in the root directory. It is actually in the app/ folder as shown below.

Here's our directory structure:

|- app/                 // all the app logic
    |- controllers/
    |- models/
    |- routes.js
|- public/              // app assets (css/frontend js/img)
    |- css/
|- views/
.env            // holds our environment variables
package.json    // holds our app configuration
server.js       // the starting point for our app

We'll be setting up our server and creating our home page route/view/controller.

Like this article? Follow @chrisoncode on Twitter