Build apps using bindings for native GUI libs like
QT (node-qt) or GTK (node-gui)
HTML and JS based apps running inside an web view embedded in a native shell
A library that combines WebKit engine and Node.js in a unique way.
Both WebKit and Node share the same context, allowing you to write your code like it's meant to be executed in a browser, but with the addition of all Node's features.
>
<
$ npm install -g nodewebkit
# Step 1, create index.html
$ vim index.html
# Step 2, create manifest file
$ vim package.json
# Step 3, package the app
$ zip myapp.nw index.html package.json
# Step 4, test it!
$ nodewebkit myapp.nw
{
"main": "index.html",
"name": "nw-demo",
"description": "demo app of node-webkit",
"version": "0.1.0",
"keywords": [ "demo", "node-webkit" ],
"window": {
"title": "node-webkit demo",
"icon": "link.png",
"toolbar": true,
"frame": false,
"width": 800,
"height": 500,
"position": "mouse",
"min_width": 400,
"min_height": 200,
"max_width": 800,
"max_height": 600
},
"webkit": {
"plugin": true
}
}
$ npm install –g yeoman
$ npm install –g generator-node-webkit
$ npm install –g nodewebkit
$ npm install –g grunt-cli
$ yo node-webkit
# Generate OSX app
$ grunt dist-mac
# Generate linux binary $ grunt dist-linux
# Generate windows exe $ grunt dist-win