Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to understand the desktop application TermKit developed by Node.js

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

In this issue, the editor will bring you about how to understand the desktop application TermKit developed by Node.js. The article is rich in content and analyzes and describes it from a professional point of view. I hope you can get something after reading this article.

TermKit introduction

[the following is referenced from http://acko.net/blog/on-termkit]

For a long time, people have been used to using terminal control system under linux.

For super unprofessional linux people like me, here's the thing.

At this time, steven wittens appeared and wrote a very interesting thing for macox, which can be called the next generation of rich media terminals. It can display the command results with graphical elements in the terminal.

It looks like this:

With automatic completion, there are various icons that look very comfortable.

How to install

I will not introduce how to install it in mac. I will only introduce the installation under linux.

First of all, we need to install nodejs, it should be noted here, it is recommended to install 0.4.* stable version, the new version may have incompatibility problems, believe it or not, I failed when installing 0.6.1.

Also, the version of connect should be between 1.2.0 and 1.3.0, not including 1.3.0.

The details are as follows:

Wget http://nodejs.org/dist/node-v0.4.8.tar.gz cd node-v0.4.8 tar-xf node-v0.4.8. / configure make & & make install

Install npm after installing node

Curl http://npmjs.org/install.sh|sh

After that, download termkit and install it

Git clone https://github.com/Floby/TermKit.git-- recursive cd TermKit/ npm install

Then you can start. Note here that we need to start the operation under the TermKit directory:

Node Node/nodekit.js

After startup, the running log will be displayed in the terminal, and then you can focus on the browser.

Of course, because the client is a browser and the server is node, socket.io is an essential module, which is automatically loaded according to dependencies when npm is installed. Socket.io will give priority to websocket as the channel for data exchange, so it is recommended that you use chrome as the terminal.

The overall architecture is like this.

The above is the editor for you to share how to understand the desktop application TermKit developed by Node.js, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report