node.js introduction notes

A lot about node has been introduced earlier JS theoretical knowledge, but lack of practical combat. Actual combat is still more important. Therefore, I hope to record these basic knowledge and key points of actual combat of the project like thinkPHP before, which can be easily read by myself and shared with you. If there is anything wrong, ...

Added by Wesf90 on Mon, 14 Feb 2022 16:08:37 +0200

Node.js data Stream (Stream interface)

1 Overview Data reading and writing can be regarded as a special case of Event mode. The continuously sent data blocks are like events. Reading data is a read Event, writing data is a write Event, and data block is the information attached to the Event. Node provides a special interface Stream for such situations. stream is a way of handl ...

Added by leon_zilber on Mon, 14 Feb 2022 16:03:28 +0200

Express - based on node web application development framework based on JS platform

1. Introduction to express Express is based on node JS platform, a fast, open and minimalist Web development framework (a third-party package on npm). Its function is similar to that of node JS is similar to the built-in http module, which is specially used to create a Web server. The built-in http module is very complex but inefficient; ...

Added by KoshNaranek on Mon, 14 Feb 2022 06:40:35 +0200

How to quickly build your own component library for the team -- build your own component library for the team based on element UI

The article has been included in github , welcome to Watch and Star.brief introductionIn understanding Element source code architecture Next, we build our own component library for the team based on element UI.Theme configurationThe basic component library has little difference in UI structure. Generally, there will be great difference in the ...

Added by bdemo2 on Mon, 14 Feb 2022 02:28:13 +0200

To make "IPC" calls with JS more gracefully, I wrote the event invoke library

backgroundThe team has a node recently JS new module needs to be developed, involving the management and communication of multiple processes. The simplified model can be understood as some methods that need to frequently call the worker process from the master process. A simple design and implementation is implemented event-invoke The library c ...

Added by twm on Sat, 12 Feb 2022 16:28:03 +0200

NPM package management and modularization

package introduction The package specification of CommonJS allows us to combine a set of related modules to form a complete set of tools The package specification of CommonJS consists of two parts: package structure and package description file Package structure: used to organize various files in the package Package description file (pa ...

Added by nicko on Sat, 12 Feb 2022 14:49:20 +0200

Node --- 01 nodemon depends on thermal overload

Do Vue JS for a long time, subconsciously rely on thermal overload, ctrl+s save!! The page automatically presents the latest status!! It's great!! Lead to node JS, ctrl+s saves, and looks forward to waiting for the latest state. The result Hey, hey?? oh This is node JS, you need to enter a command "node [startup file]" can be recomp ...

Added by Coronet on Fri, 11 Feb 2022 20:17:17 +0200

Dynamic loading and packaging of Web pack

webpack code splitting webpack has two ways to organize module dependencies, synchronous and asynchronous. Asynchronous dependency is used as the segmentation point to form a new block. After optimizing the dependency tree, each asynchronous block is packaged as a file. Context module There are six types of context modules: sync / lazy / laz ...

Added by discosuperfly on Fri, 11 Feb 2022 15:12:12 +0200

Express security verification -- password encryption and authentication

bcrypt password encryption In practical applications, it is not safe to store user passwords directly in plaintext. Here is how to use password parsing and parsing Installing the bcrypt module yarn add bcrypt Encryption and parsing function You need to encapsulate promise to avoid errors caused by asynchrony exports.hash = (myPlaintex ...

Added by wellmoon on Fri, 11 Feb 2022 10:10:44 +0200

node.js backend koa2 framework blog project connects to mongodb database to realize simple addition, deletion, modification and query

Required software: vscode, official website link Download: https://code.visualstudio.com/ ; (you can also use the editor you are used to) node.js, official website link Download: http://nodejs.cn/ ; Mongodb, official website download link: https://www.mongodb.com/try/download/community , we can just install the community version. (mac users ...

Added by Rommeo on Fri, 11 Feb 2022 08:56:16 +0200