express custom middleware handles post requests

preface express's built-in urlencoded () has compatibility problems. We use node's querystring to encapsulate a middleware for processing post requests for ease of use. 1, Built in middleware (common) Implementation code and notes const express = require('express'); const app = express(); // Built in middleware common // express.st ...

Added by accident on Sat, 15 Jan 2022 20:54:46 +0200

mongoDB description and related commands

At present, the database is divided into: Relational database:             mysql,sqlserver,Oracle Note: the data is stored in the data table, which is stored in the computer disk Non relational database:             mongoDB,redis Note: the data is stored in the computer memory, so it is faster to read and write data To insta ...

Added by gunabalans on Sat, 15 Jan 2022 17:55:54 +0200

About my change from a programmer to a "post leek zero" [node realizes e-mail sending]

1, Previously on I know a friend who made 380000 Yuan in just one month. I asked him how he earned it. He said that he recommended the stock limit to others. He was interrupted by someone and the other party lost... ⊙﹏⊙∥    the above is a passage. Don't take it seriously, As a "chive zero generation" ("chive yea ...

Added by Altairzq on Wed, 12 Jan 2022 03:14:12 +0200

[Node Weekly #417] nodes you need to know JS memory limit

🥳 Welcome interested partners to do something meaningful together! Translator: oil-oilI launched a weekly translation program, Warehouse address,Access address There is still a shortage of like-minded partners. They are purely personal interests. Of course, they will also help to improve English and front-end skills. Requirements: English i ...

Added by Xander756 on Tue, 11 Jan 2022 11:02:36 +0200

MySQL summary of sequencing operation applied by Egg framework

Egg.js, an open source enterprise node of Alibaba JS framework. Compared with Express and Koa, egg JS is lighter, which is the enhancement of Koa, and the development cost and efficiency are more efficient.Sequenize, a widely used ORM framework, supports multiple data sources such as MySQL, PostgreSQL, SQLite and MSSQL.1, Install the configurat ...

Added by themaxx113 on Tue, 11 Jan 2022 06:19:00 +0200

node.js+postman simply simulates the interaction between HTTP server and client

When an application (client) needs a resource, it can obtain the resource from a server through http request. The server that provides resources is the web server (created with node.js in this paper). postman is used to simulate the client to send requests to the server. 1, Build HTTP server on node node uses the HTTP module to create ...

Added by trock74 on Mon, 10 Jan 2022 17:19:07 +0200

Application and practice of jwt in node

Introduction: since http is stateless and user identity information is not stored and recorded in the request response process, there are many methods for users to identify and store user identity, such as cookies, sessions and jwt. An interface service I recently made uses jwt to store and manage user information. Compared with local cookie st ...

Added by joebloggs1987 on Thu, 06 Jan 2022 11:33:28 +0200

Application and practice of jwt in node

Introduction: since http is stateless and user identity information is not stored and recorded in the request response process, there are many methods for users to identify and store user identity, such as cookies, sessions and jwt. An interface service I recently made uses jwt to store and manage user information. Compared with local cookie st ...

Added by loveitandhateit on Thu, 06 Jan 2022 11:31:39 +0200

Node.js composition and Events module

1 Node.js module and package1.1 moduleNode.js itself provides many modules. Each module implements a function, such as file operation module fs, HTTP module for building HTTP services, etc. each module is a javascript file and can write its own module.Each node js is a node js module, including JavaScript file (. js), json text file (. json) an ...

Added by Cascade on Wed, 05 Jan 2022 15:18:37 +0200

Node.js ~ Basics

1. node asynchronous non blocking I/O Synchronization and asynchrony refer to the characteristics of certain methods and calls. Synchronization is when a function call is sent, the caller will not return until the result is obtained. Asynchrony is that the caller can not get the result immediately after the call is issued, but when the asynchr ...

Added by jamieh on Wed, 05 Jan 2022 07:35:31 +0200