Start a Working Express Server - Not Found Problem

Hi,

I’m struggling with a Not Found problem.

Here is my Glitch link: https://impossible-nose.glitch.me
and : https://glitch.com/edit/#!/impossible-nose

I don’t understand the problem, it looks fine to me.

Add this to the end of myApp.js:

module.exports = app

Thank you very much !!!

Can you explain to me what it does ?

In server.js there is this line:

var myApp = require('./myApp');

which assigns to myApp default export from ./myApp.
Using module.exports you create this default export (google for “javascript module exports” for more detailed explanation).

Ah ok, it’s like the export in React ?

Yes.
But you can use module.exports/require in React also.