I am web developer

Build Desktop App With Node Webkit

I will build simple desktop app with Node-Webkit (Node.js integrated) and Javascript, Css, Html.

1. Install Node-Webkit
  + You need envirnment to develop. That is nw.js
  + Go to page NW github to download right version
  + Extract zip or gz folder that you have just downloaded
  + Create folder DemoApp contain  2 folder: nw + helloapp
     nw : folder you extract (rename as nw)
     helloapp: contain package.son file and your source code

  You can follow this getting-started-with-node-webkit-apps

2. Run your helloapp
  + Cd to folder contain your package.json
  + Run CML:   /path/to/nw .
(Don't forget dot at the end)

3. Using Node modules
 When you want to access file system, using database..we need node module. We have 3 type of modules in Node.js. You can see what they are in nw wiki

4. Save persistent data in app
 Read this first : how to save data  .You will know more about database which we need in our app

5. Debug your app
 Please note that we often have two builds for each platform: normal build (without DevTools) and SDK build (with DevTools). Read this Release note to know more about what you need. I recommend to download SDK version that you can debug your app easily.

 If you see empty window devtools, you maybe download normal build version. So please check above note to download right version.

This is the first post in building desktop app with NodeWebKit. I will continue making others post in this topic with advantaged features. Please wait for short time.


Build Desktop App With Node Webkit Build Desktop App With Node Webkit Reviewed by quyencv on 08:01:00 Rating: 5

Không có nhận xét nào:

THis is ad

dfdf
Được tạo bởi Blogger.