Is there an example of simple Express server used on XDN?

Do we have an example of simple Express server for XDN used in config.server.path ?

I’m just stuck on the error like:

> Running MOOVWEB XDN in development mode with caching disabled
__  ~ file: loadServer.js ~ line 34 ~ loadServer ~ server { default: [Function: start] }
__  ~ file: loadServer.js ~ line 32 ~ loadServer ~ config.export app
__  ~ file: loadServer.js ~ line 28 ~ loadServer ~ server[config.export] undefined
/node_modules/@xdn/core/server/loadServer.js:27
            server = server[config.export]();
TypeError: server[config.export] is not a function
    at Object.loadServer [as default] ...

And I believe the project I’m working on has wrong express server file export or something…
Thanks.

Have you looked at https://developer.moovweb.com/guides/react#section_express_example ?

1 Like

Thanks. That’s what I’ve been looking for