Creating the config.js file

Create a file called config.js inside the config folder at server/config/ and add the following code:

// Database URL 
module.exports = { 
    'url' : 'mongodb://localhost/mvc-app-multimedia' 
}; 

Create a file called passport.js inside the config folder at: server/config/.

In this step, we will use the same configuration file for the Passport module used in Chapter 01, Building a Twitter-Like Application Using the MVC Design Pattern in Node.js. You can download the sample code from www.packtpub.com or from the official repository of the book from GitHub.

Get Node.js 6.x Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.