Ana M
Ana M

Reputation: 667

LoopbackJS - How to define the entry point for the client application?

I'm trying to create a loopback project, in which the client application will load in localhost:3000.

So I defined in server/server.js:

var path = require('path');
app.use(loopback.static(path.resolve(__dirname, '../client')));

Where client is the directory of the frontend files I would like to be presented in localhost:3000. However, when entering localhost:3000, I still see the message

'{"started":"2014-11-17T12:38:58.258Z","uptime":586.385}'

instead of index.html.

How can I redirect the entry point from that, to client/index.html?

Thank you

Upvotes: 0

Views: 759

Answers (1)

superkhau
superkhau

Reputation: 2781

delete '/server/boot/root.js' and it should work

Upvotes: 3

Related Questions