Node-webkit practices: Program Manager and programmanager
Ask the most popular programming language currently. javascript (js for short, not jiansheng) dares to say second, And no one dares to say first. I personally think that csung has the following advantages or features :'
1. Suitable for beginners
The introduction to js is actually very simple. It takes about one to five days to get started with my personal basics and experience.
2. Huge user base
Recently, there was a hot news in the front-end field, that is, a nonprofit organization in the United States trained prisoners in prison for front-end development. After they are released, they will be able to get a new student. The core language is js. Js users are all moved to jail, so we can imagine the number of users.
3. Open-Source project surge
The most active and fastest growing projects on github are js-related projects, IT forums, IT video tutorial websites, and front-end websites, such as MOOC. A huge creative platform for young people with dreams.
4. Both the frontend and backend
The birth of Nodejs completely subverts the status of js in the programming field, because it makes it the only language that supports both the frontend and backend. Even though there is a platform, today's topic is to use nodehs to develop a desktop application with js.
Several articles mentioned node-webkit to develop desktop applications. Today I will share my practical project program manager, which is hosted on github. Because I have a detailed introduction on github, I paste it here, but it is an introduction in English. Click the open link to go to github.
------------------------------------------------------------- The gorgeous separator .---------------------------------------------------------
Nw-program-manager
Program manager based on node-webkit (nw), server end (or port) through mysql db server to control the client program.
It is a program manager application that based on node-webkit, as show below:
Run On:
Window7/8 (32bit or 64bit)
How to use it? Ready works:
Before hitting the appliction, you shoshould know how the running the node-webkit application, you can ref to: https://github.com/rogerwang/node-webkit/wiki/How-to-package-and-distribute-your-apps. after control abve, Now you shoshould have something below, you can drop the project (nw-program-manager) floder to the nw.exe file, then it will running the appliction, good luck for you!
First of all: Choose the user
If there are no problems in running the app, you can see below image, now you shoshould choose the user, the client mean the client end (side ), the server mean the controller end (side ).
Client sideStep 1: Setting the database
Setting the mysql db as below, then click the connect button, if connected the button will become green, and the button text will change to "disconnect" (click it again to disconnect the db ). in this case, you should make sure the db server is running, and the setting is right work. (First connectting the db it will auto create the db & tables, next time it will load the data from db server ).
Step 2: Add or remove app items
As show below picture, Click the Add button to add the app items, after that, the app item row will be added to center. As the same remove button.
Step 3: Select. exe file
As below image showed, click the slect button that layed on app item row, to select the window's application which controled by other side (controller ).
Controller SideStep 1:
As the same as client side, settingthe db and click the coonect button to connect the db server. as below:
Step 2:
After connected the db server, it will auto load the app items form server, and it will update once per second. then you can control the remote client end's apps through the run & close button. as below:
Summary
If there is any questions, please commit in the issue page, or jion in the QQ group: 139761568. Thanks!