node js use cases

Alibabacloud.com offers a wide variety of articles about node js use cases, easily find your node js use cases information here online.

Use Node. js to add watermarks to images.

Use Node. js to add watermarks to images. I. preparations: First, make sure that you have installed the node environment locally. Then, we need to use a Node. js Library: images for ima

How to Use npm to publish the Node. JS package

How to Use npm to publish the Node. JS package This article describes how to use npm to publish a Node. JS package. This article describes how to configure package. json, register an npm account, and publish a package. For more in

Use the process. nextTick instance in Node. js

This article mainly introduces Node. process. nextTick uses an instance. What is the use, use, and difference between the nextTick function and setTimeout? This article explains this knowledge, for more information, see where I can see process for the first time. nextTick is called. Oh, it should be seen in the official process document of nodejs. At that time, I

Use the Iisnode module to let your node. js app run in Windows system IIS

Recently I prefer to use node. js to do some simple applications, always want to deploy to the production environment, but only one Windows Server 2008 server, and has opened the IIS service, running a lot. NET development site, Port 80 is already occupied.Originally wanted to use Nginx as a Web server to listen to 80

Use Node. js to handle the encoding of front-end code files.

Use Node. js to handle the encoding of front-end code files. When you use NodeJS to write a front-end tool, the most common operation is text files, which involves file encoding. The commonly used text encoding methods include UTF8 and GBK, And the UTF8 file may also contain BOM. When reading text files of different en

Use Node. js to compile cross-platform spawn statements.

Use Node. js to compile cross-platform spawn statements. Preface Node. js is cross-platform, that is, it can run on Windows, OSX, and Linux platforms. Many Node. js developers develop c

Use Promise in NodeJS to encapsulate asynchronous functions _ node. js

This article describes how to use Promise in Node. js to encapsulate asynchronous functions and use unified chained APIs to get rid of the nightmare of multiple callbacks. it is a very practical little skill, I hope my friends will like writing Node. during the

To do your best, you must first use the node. js debugging technology.

suspended (the debugger tag is equivalent to opening a breakpoint in the Code ). The Code is as follows: var path = url.parse(req.url).pathname;debugger;res.writeHead(200, {'Content-Type': 'text/plain'}); Run the command: node debug example. js to enter the debugging mode. In debug mode, you can use built-in commands such as repl to evaluate the values of varia

Use Node. js and Socket. IO to extend Django's real-time processing functions

This article mainly introduces the use of Node. js and Socket. i/O extends Django's real-time processing function. asynchronous real-time processing is quite powerful. the example in this article is to create a real-time chat room. if you need it, refer to the following example, our goal is to use Django, Redis, and So

Use webstorm and git to develop node. js applications

Use webstorm and git to develop node. js applications 1. Use webstorm to create an express Project1. Create a projectFile | new project, first select location as D: \, enter the project name caller, and select the node. js Express

[NodeJS] use Node. js to write a simple online chat room

Disclaimer: the tutorial is from "out-of-the-box use of Node". Source code cases are all from this book. Blog posts are for personal study notes only. Step 1: Create a chat server. First, let's write a Server: var net = require('net')var chatServer = net.createServer()chatServer.on('connection',function(client){client.write('connection~~~\n')client.end()})chatS

Use node. js to add a watermark to a picture

First, the preparatory work:First, make sure that you have the node environment installed locally.Then we need to use a node. js library for the image editing operation:images.The address of this library is: Https://github.com/zhangyuanwei/node-images, the author defines it

Use node. js + socket. io + redis to implement basic chat room scenarios

Use node. js + socket. io + redis to implement basic chat room scenarios This article introduces the basic operations of Redis and Redis-cli in the redis database and its basic operations. among them, the publish-subscribe mechanism is widely used, so we will use nodejs to implement this mechanism. this article describ

Use JS to complete the operation of node additions, modifications, etc.

This article for everyone in detail under the use of JS to complete the node of the deletion and modification of the operation, and so on, the specific implementation of the following, interested friends can refer to the following Requirements: Completion of node additions and deletions copy operations methods and

Use Node. js to develop a reverse proxy server for memcache Protocol

Memcache is a common key-value cache solution, and its Protocol is also used in the nosql database tokyo tyrant. In actual projects, for load balancing and other considerations, clients such as php and java need to access multiple memcache and map a request for a specific key to a specific memcache. In this way, you need to configure multiple IP addresses on each client and implement the map algorithm, which is not easy to manage and maintain. Recently, I learned about

Install and use nginx with node. js

\ NginxTray 1.0. Double-click NginxTray.exe to execute multiple icons on the tray. Enable, disable, and restart functions. However, you must configure the nginx location before use. Click settings Nginx Directory is the decompressed Directory of nginx, my is D: \ Developer \ nginx-1.1.14,Note: Be careful when replacing it. some of them are covered by Nginx Directory labels, so I spent half a day. Now it is easy to start and close. D: \ Developer \

Use Web socket and Node. js to implement real-time drawing of the HTML 5 canvas (1)

Web socket and Canvas are two cool features currently implemented in browsers. This tutorial briefly describes how the two work, and creates a real-time canvas Based on Node. js and Web socket. For simplicity, I will use CoffeeScript to write all the code. If you prefer to use traditional JavaScript, you just need to t

Install and use nginx with node. js

replacing it. Some of them are covered by Nginx Directory labels, so I spent half a day. Now it is easy to start and close. D: \ Developer \ nginx-1.1.14 \ conf \ nginx. conf is the main configuration file is a bit like httpd. conf, combined with node. js need to modify the file, add under server { Location/node {Proxy_pass http: // 127.0.0.1: 1337;}

How to Use stream in node. js

')); })); } else res.end(); }); server.listen(5000); This question means that if you reverse the post data, I will not do it. The principle is the same, but the requirements are different. We use the concat plug-in to direct the data stream to concat when the form is submitted. In this example, we use the data from form post. For testing, I use the

How does Node. js use MySQL connection pool instances?

How does Nodejs use MySQL?To connect Nodejs to MySQL, you can use the MysQL driver of Nodejs. For example, here we use "node-mysql" to connect to the database. We use the following method to connect to the database:First, we need to

Total Pages: 15 1 .... 7 8 9 10 11 .... 15 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.