Activating the configure module

Now that your configure.js file is complete, you're ready to call it from your main server.js file. If you recall, we included two lines of code that were commented out for our configure module. It's time to uncomment these two lines so that when you run your server, your configure module will do its part. The two lines should now look like this:

config = require('./server/configure'), 
app = config(app); 

Boot up your server again by executing the server.js node and everything should still be running smoothly. Now, it's time to incorporate more routes into our application in addition to the Hello World route we added earlier.

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

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