node-webkit实战之《Program Manager》

17 篇文章 0 订阅
4 篇文章 0 订阅

     要问当前最火的编程语言,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 side

Step 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 Side

Step 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!


     

      

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

微个日光日

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值