var app = module.exports = require('appjs');

app.get('/',function(req,res,next){
  res.send("Hello World!");
});

var window = app.createWindow("http://appjs/", {
  width: 640,
  height: 460,
  left: -1, // remove x and y if you want to put window at center, -1 means the same
  top: -1, // remove x and y if you want to put window at center, -1 means the same
  autoResize: false, // set to true if you want to change screen size dynamically using html elements
  resizable: false, // prevent users from changing screen width or height
  showChrome: true, // show border and title bar
  opacity: 1, // you can set opacity of window.
  alpha: false, // alpha compositing of the window background
  fullscreen: false, // we don't need fullscreen window
  showResizeGrip: false, // resize grip is an annoying triangle at the right bottom corner of window
  disableSecurity: true, // allow cross origin requests
});


window.on("ready",function(){
  console.log("Window Created");
  this.show();
});

window.on("close",function(){
  console.log("Window Closed");
});

var app = module.exports = require('appjs');

app.get('/',function(req,res,next){
  res.send("Hello World!");
});

var window = app.createWindow("http://appjs/", {
  width: 640,
  height: 460,
  left: -1, // remove x and y if you want to put window at center, -1 means the same
  top: -1, // remove x and y if you want to put window at center, -1 means the same
  autoResize: false, // set to true if you want to change screen size dynamically using html elements
  resizable: false, // prevent users from changing screen width or height
  showChrome: true, // show border and title bar
  opacity: 1, // you can set opacity of window.
  alpha: false, // alpha compositing of the window background
  fullscreen: false, // we don't need fullscreen window
  showResizeGrip: false, // resize grip is an annoying triangle at the right bottom corner of window
  disableSecurity: true, // allow cross origin requests
});


window.on("create",function(){
  console.log("Window Created");
});

window.on("ready",function(){
  console.log("Window Ready");
  this.show();
});

window.on("close",function(){
  console.log("Window Closed");
});

bring back create event in app.js