nodejuice icon indicating copy to clipboard operation
nodejuice copied to clipboard

Express and jade

Open AdamGerthel opened this issue 13 years ago • 1 comments

Nodejuice has potential to be a very useful prototyping tool

Does it work with express and jade files (instead of .html)?

AdamGerthel avatar Mar 02 '12 09:03 AdamGerthel

Hi Adam @AdamGerthel!

Yes. NodeJuice can proxy to any web server. Including other Node.JS Express servers. The way to do this is to edit the nodejuce.js config file and point the host to your web server IP/PORT. Like This:

exports.sidekick = {
    host  : null, // Leave 'null' to listen on localhost (127.0.0.1).
    port  : 8010, // access auto-refresh URL from this port.
    fetch : {     // point to your web server.
        host : 'localhost', // <-- point this to NODE.JS EXPRESS
        port : 8080         // <-- point this to NODE.JS EXPRESS
    }
};

stephenlb avatar Mar 02 '12 21:03 stephenlb