What is Node-webkit?
Node-webkit is an application runtime environment written by Intel engineer Rogerwang based on node. JS and chromium, and through Node-webkit, we can use Html/javascript/css to write PC desktop applications.
You can actually understand or write a web app, but you can use the node. JS API and finally package the entire app with a browser. So it's not limited by the platform (except for the use of node. JS invoke OS API), a piece of code is packaged into the corresponding platform for publishing, and if you know Phonegap/cordova, this node-webkit is very similar to them, but with node. js as much.
Project Address: Https://github.com/rogerwang/node-webkit
Getting Started Demo
Here is an introduction to the process of developing a project using Node-webkit.
Download Node-webkit
Download the corresponding operating system files in Https://github.com/rogerwang/node-webkit. Decompression can be. It is recommended that you add it to the environment variable.
New Project
New project folder. C:/users/keith/node/webkitdemo
New Package.json
<! DOCTYPE html>
Run
Under the command line:
NPM install node-webkit-builder-g CD c:/users/keith/node/ Nwbuild-p win C:/USERS/KEITH/NODE/WEBKITDEMO/CD build/demo/win/./demo.exe//Run program
At this point you can choose to directly post the compiled folder compression, you can also choose to package the compiled folder as an EXE file, directly publish the EXE file, if you want to do this requires a tool Enigma Virtual Box, after installation run Enigma Virtual Box
In the Enter Input file name, select the C:/users/keith/node/build/win/demo.exe. c:/users/keith/node/build/demo/and click the Add button below. All DLL files and Nw.pak in the win directory, then click on Files opions, tick compress compressed file, and finally click Process to complete.
SummarizeWith Node-webkit, you can easily develop some PC desktop applications, and with node. JS, you can develop a lot of interesting things, such as creating a local server with node. js, manipulating local files, and so on. Can quickly develop a cross-platform application, not very good place is packaged after the application of large volume, even after compression has 3,40m.
Node-webkit Introduction