iteles / learning

A repo for various exercises as I'm learning new technologies
19 stars 5 forks source link

[hapi-edge] stubbing modules #6

Open iteles opened 8 years ago

iteles commented 8 years ago

Research the right way of stubbing modules so that things like:

var Api = require('./api');
var Authentication = require('./authentication');
var Controllers = require('./controllers');
var Models = require('./models');
var Routes = require('./routes')

don't cause an issue in the beginning.

I'm just commenting them out until they exist so the server runs but unfortunately the hapi-edge book starts with these in chapters 2 and 3 so nothing runs until you comment them out (not very beginner friendly).