Hi, thanks you a lot for your architecture, it's really great, clean and easy to develop with it.
I just met some errors while I was trying to make my app.
First, when I started the Node Script, it gives me this error : server.create is not a function
Well I find a solution re-writting the server/index.js
file.
You put the functions directly in the module.exports and I prefer to keep the same logic as the others files, initializing functions Create and Start and then sending them to the module.exports. So my file looks like :
function create(config) {
}
function start() {
}
module.exports = {
start: start,
create: create
};
Then I have another error that I can't solve... Before, I used to work with the server.use(function(req,res){})
to check all the pages that are not defined, but I don't really know how to do with your architecture.
I tried to put in the server/routes/index.js
after all my differents routes a code like this :
/*404*/
server.use(function(req,res){
res.status(404);
res.render('404');
});
But now every pages I want to connect send me to my 404 page... is there anyway to correct this?
I would be so greatful,
Thanks