Node.js Asynchronous Programming Evolution Theory

This article uses the "Signature 4.0 International (CC BY 4.0)" license agreement, and welcomes reprinting, or re-modifying the use, provided the source is indicated. Signature 4.0 International (CC BY 4.0) Node.js asynchronous programming callback We know that there are two ways to handle events in Node.js, callback and EventEmitter. ...

Posted by isedeasy on Tue, 19 Nov 2019 20:15:42 -0800

Using vue+node+koa+sequlize to realize the background management system

mkdir AceNode && cd AceNode vi package.json Add the following to package.json { "name": "ace-node", "version": "1.0.0", "description": "backend for ace", "main": "./src/app.js", "scripts": { "start": "nodemon node ./src/app.js", "build": "babel ./src/app.js -d dist" }, "keywords": [ "koa", "async" ], ...

Posted by phorcon3 on Mon, 11 Nov 2019 14:28:22 -0800

es6 7 useful skills

Array weight removal var arr = [1, 2, 3, 3, 4]; console.log(...new Set(arr)) >> [1, 2, 3, 4] Arrays and Booleans Sometimes we need to filter the value of false in the array. For example (0, undefined, null, false), you may not know such a trick. var myArray = [1, 0 , undefined, null, false]; myArray.filter(Boolean); > > [1] //Is it ...

Posted by ainoy31 on Wed, 30 Oct 2019 10:28:01 -0700

Webassembly practice - rust to wasm

target Using the existing lib - blake2b-simd of rust, js callable tool class functions are generated. Avoid the resource consumption caused by using js to translate the rust code. Environmental Science Rustc rustup cargo (development and compilation tool of rust Lang) nodejs (publish the package generated by wasm pack) Install wasm pack carg ...

Posted by Fearpig on Wed, 30 Oct 2019 07:01:55 -0700

The attempt of Vue+Node+Express+MySql

Preface This is a very simple attempt. The original intention is to replace PHP with nodejs and build a complete web project. Project logic vue develops the front-end, and is still in the dev mode. It uses proxy proxy proxy to communicate with the node back-end.node+express builds back-end web services, connects to mysql, and performs addition, ...

Posted by ShootingBlanks on Fri, 25 Oct 2019 14:14:02 -0700

Source code analysis of node modularization

Introduction First of all, let's talk about the difference between CommonJS module and ES6 module. Here we will directly give the difference between them. The CommonJS module outputs a copy of the value, and the ES6 module outputs a reference to the value. The CommonJS module is run-time loading, and the ES6 module is a compile time output int ...

Posted by th3void on Wed, 23 Oct 2019 19:10:58 -0700

Implementation of p2p video call with WebRTC

brief introduction Objective to help oneself understand webrtc to realize end-to-end communication # Usage flow git clone https://gitee.com/wjj0720/webrtc.git cd ./webRTC npm i npm run dev # Visit 127.0.0.1:3003/test-1.html to demonstrate h5 media stream capture # Visit 127.0.0.1:3003/local.html to demonstrate rtc local transmis ...

Posted by viveleroi0 on Sat, 19 Oct 2019 08:17:49 -0700

Basic essence of TypeScript

Original address: Basic essence of TypeScript github address of basic notes: https://github.com/qiqihaobenben/Front-End-Basics Either watch or star. Type considerations Array type There are two types of annotation, with particular attention to the second using the TS built-in Array generic interface. let arr1: number[] = [1,2,3] // The follo ...

Posted by onegative on Wed, 16 Oct 2019 21:05:07 -0700

Use Node+VueCli+ElemenetUI+MongoDB to teach you how to develop a comprehensive course website, including background management system

Use Node's hands to teach you how to write a tutorial website (follow the response style), including the front-end content and background management system, integration of Express framework and Monodb database server development; teach you how to use Vue.JS, ElementUI and iViewUI to write super beautiful pages. This project is originally create ...

Posted by jlr2k8 on Sun, 13 Oct 2019 04:22:20 -0700

Implementation of node crawling web pages

I. Preface It has always been felt that the crawler is a very high-end thing. In the era of big data, the crawler is particularly important. After a lot of exploration, we finally realized this function with node, including the analysis of grabbed content. Two, text 1. First of all, build an http service, where we are familiar with koa (this is ...

Posted by itisme on Fri, 11 Oct 2019 11:39:34 -0700