Node-webkit Introduction

Source: Internet
Author: User
Tags install node npm install node


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.

  1. 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.

  2. New Project

    New project folder. C:/users/keith/node/webkitdemo
    New Package.json

     <! DOCTYPE html> 
  3. 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.

Summarize

With 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.