ccarruitero/makemehapi

404 error on the handling exercise

Closed this issue · 5 comments

Hello,

Im now trying to make the handling exercise

I have this :

var Hapi = require('hapi');

var server = new Hapi.Server(); 

server.connection({
 host: 'localhost',
 port: Number(process.argv[2] || 8080)
 });

server.route({
 method: 'GET',
 path: '/',
 handler: {
   file: 'index.html'
  }
});

server.start();

but as soon as I do makemehapi run I see a 404 error

Roelof

arb commented

Do you have an "index.html" file at the route of the project?

No, I thought that that file was provided by the lessons

Do you think https://github.com/hapijs/makemehapi/blob/master/exercises/handling/problem.md needs more clarity? If so feel free to PR will suggestions.

I will think about what can be improved.

Closing this as it is resolved. Feel free to open a PR if you have a suggestion on making the instructions more clear.