-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
30 lines (26 loc) · 877 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
var request = require('request');
var fs = require('fs');
var path = require('path');
var yauzl = require("yauzl");
var mkdirp = require('mkdirp');
var path = require('path');
var async = require('async');
var Silk = require('silk-api');
var http = require('http');
var sockjs = require('sockjs');
var express = require('express');
var app = express();
var server = http.createServer(app);
var electronApp = require('app');
var BrowserWindow = require('browser-window');
var Eureca = require('eureca.io');
var exports = require('./exports.js');
app.use(express.static(path.join(__dirname, 'public')));
var eurecaServer = new Eureca.Server({ transport: 'sockjs' });
eurecaServer.attach(server);
eurecaServer.exports = exports;
server.listen(2001, '0.0.0.0');
electronApp.on('ready', function () {
var window = new BrowserWindow();
window.loadUrl('http://bing.com');
});