node-webkit實戰之《Program Manager》,《programmanager》
要問當前最火的程式設計語言,javascript(簡稱js,不是劍聖)敢說第二,沒人敢說第一。我個人覺得javasccript有以下優勢或者特點:‘
1,適合入門
js這門語言入門其實很簡單,看個人基礎和經驗,大概只需1至5天即可掌握,甚至精通。
2,使用者龐大
最近前端界有個很火的新聞,即美國的一個公益組織給監獄裡的犯人培訓前端開發,等他們出獄後即可獲得新生,其中核心語言就是js。js的使用者都蔓延到監獄中去了,可想而知其使用者數量。
3,開源項目激增
在github上最活躍,增長最快的是js相關的項目,IT論壇,IT視頻教程網站,最多的也是前端,比如慕課網,等等。給懷著夢想的年輕人一個巨大的創造平台。
4,通吃前後端
Nodejs的誕生,徹底顛覆了js在編程領域的地位,因為這讓他成為唯一一個通吃前後端的語言。甚至通吃說有平台,今天主題就是藉助nodehs用js開發一個案頭應用。
之前有幾篇文章提到過node-webkit來開發案頭應用,今天就分享一下我的實戰項目《program manager》,此項目被託管在了github上。因為github上有詳細介紹,這裡我就直接粘貼過來了,不過是英文的介紹。可以直接點擊點擊開啟連結進入github進行查看。
-----------------------------------------------------------華麗的分隔字元.---------------------------------------------------------
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 should 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 above,Now you should 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 should 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,settting the 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!