Im using GitHub Electron to create Desktop application with web technologies.
I\'m using Node.js
as the server, my problem is that i do
Just simply require
the server.js
file in your main file (e.g. app.js
):
var app = require("app")
, server = require("./server")
;
...
And in the server.js
file you can have:
require("http").createServer(function (req, res) {
res.end("Hello from server started by Electron app!");
}).listen(9000)