node-webkit實戰之《Program Manager》,《programmanager》

來源:互聯網
上載者:User

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!


     

      

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.