Express tutorial 04: handling file uploads

To read more series, please visit my GitHub blog , please visit Here. Using the filter to handle file upload Processing file upload, naturally, can not do without the help of middleware. Here Multer For example, this paper introduces the use of file upload middleware. However, the Multer can only process the data submitted ...

Posted on Mon, 18 Nov 2019 10:06:18 -0500 by Mr.x

2 database table - API nodejs + Express + MySQL in the back end of Blog

After sorting out the functions, we can start the database table design: Database table diagram: First, open Navicat Premium to create a database blog The configuration is as follows: Under blogNodejs/models First, create mysql.js to configure MySQL connection (based on Sequelize) var config = require('config-lite');//Introducing flexible pro ...

Posted on Mon, 18 Nov 2019 09:27:06 -0500 by clio-stylers

Using binary method to deploy K8S-1.16 high availability cluster

I. project introduction The project aims to let enterprises or individuals who intend to use the native kubernetes cluster manually build the kubernetes high availability cluster in a convenient and systematic way. And let related personnel better understand the operation mechanism of kubernetes cluster. Software version OS CentOS 7.7 (ubuntu ...

Posted on Mon, 18 Nov 2019 04:11:52 -0500 by Lol5916

The principle of cross domain implementation of Jsonp in front end and the implementation of Jsonp under. Net

The essence of jsonp is to request to the server through the src attribute of the script tag and get the data returned from the server, because src can be cross domain. When the front-end sends the cross domain request through src, it brings a callback function to the url of the request. When the server receives the request, it accepts the func ...

Posted on Sun, 17 Nov 2019 15:09:12 -0500 by sunnyside

ES6 I use

let and const The project built by webpack directly discards VaR and directly uses let instead of var let instead of var in for loop After variable declaration, it will not change. Please use const Destructuring assignment Concept: first deconstruct and then assign, first find out the data you need from a pile of data, and then assign the dat ...

Posted on Sun, 17 Nov 2019 13:52:48 -0500 by CincoPistolero

Introduction to Python crawler Lesson 8: hummingbird Web picture crawling Part 3

Hummingbird net picture The capacity of the previous tutorials is relatively large. Today, I write a relatively simple one. It's a hummingbird. I still use aiohttp. I hope you like it Crawling to the page https://tu.fengniao.com/15/, this tutorial is based on the purpose of learning. Why choose hummingbirds? I can't help it. I ...

Posted on Sun, 17 Nov 2019 12:18:49 -0500 by WhiteHawk

The most intimate front-end scaffold development guidance in history

Whenever you find yourself on the side of most people, it's time to stop and think. ——Mark Twain Because this part of the content is a little complicated, post the github address and video explanation address before explanation:Project source code: https://github.com/Walker-Leee/awesome-test-cliVideo explanation, please search WeCh ...

Posted on Sun, 17 Nov 2019 11:36:53 -0500 by dgx

How to set the visible function of chat and speech in live APP

Chat function is an important function in live APP production. In the development, it often involves different processing of received and sent messages according to different user classifications The treatment is as follows:1. When the user enters the room link socket, enter the specific room according to the user's properties if(socke ...

Posted on Sun, 17 Nov 2019 10:24:46 -0500 by anthrt

ES6 Array sorting: more recommended methods and techniques than ES5

Original link: https://dsx2016.com/?p=692WeChat public number: big brother 2016 ECMAScript ECMA ScriptyesECMA-262The name of the standardized scripting language. althoughJavaScriptandJScriptAndECMAScriptCompatible, but contains more thanECMA ScriptFunction. The following table is divided into four modules: ECMAScript 1st Edition (ECMA-262)Co ...

Posted on Sun, 17 Nov 2019 09:03:23 -0500 by Aphp73

WebRTC: A simple example of video chat

Introduction to related API s In the previous section, we have introduced some important knowledge points related to WebRTC, including the network protocols involved, session description protocols, how to make network penetration, and so on. The rest is the API of WebRTC. There are many API s related to WebRTC communication, which mainly accomp ...

Posted on Sun, 17 Nov 2019 02:33:03 -0500 by gacon