/*global require: false, console: false */
(function () {
    "use strict";
    var proxy = require("./proxy/proxy"),
        server = require("./server/server"),
        cprocess = require('child_process');

    var port = -1;

    console.log("Staring proxy.");
    proxy.start().then(function () {
        server.start().then(function () {
            port = proxy.getPort();
            console.log("Started server on " + port);
            if (port > 0) {
                cprocess.exec("open http://localhost:8080/client/index.html?" + port);
            } else {
                console.log("Proxy does not return port: " + port);
            }
        });
    });

}());
/*global require: false, console: false */
(function () {
    "use strict";
    var proxy = require("./proxy/proxy"),
        server = require("./server/server"),
        cprocess = require('child_process'),
        open = require("open");

    var port = -1;

    console.log("Staring proxy.");
    proxy.start().then(function () {
        server.start().then(function () {
            port = proxy.getPort();
            console.log("Started server on " + port);
            if (port > 0) {
                open("http://localhost:8080/client/index.html?" + port);
            } else {
                console.log("Proxy does not return port: " + port);
            }
        });
    });

}());
Use open to launch the browser.
Use open to launch the browser.
