Mongoose source code analysis (type conversion part)

Mongoose source code The bottom layer of Mongoose is written in javaScript. javaScript has only one Number type, Number, which can be integer or decimal, so Mongoose is the same number section: This part is the process of number converting different types into number Mongoose is a further optimized encapsulation of the Node's native Mongo ...

Added by JovanLo on Thu, 23 Dec 2021 09:52:48 +0200

Developing WeChat official account using NodeJs and JavaScript

As the front-end, you may have written more or less wechat h5 web pages developed in combination with wechat j sdk. The authorized login and some SDKs may be called through the background interface. Have you ever thought about how to write these background interfaces? So today's article will take you to understand how to write! 1, Prepare ...

Added by SirChick on Tue, 23 Nov 2021 16:33:40 +0200

eggjs Learning Notes Day 35: Simple Logic for Background Login Authentication

1. After getting the user name, password and authentication code in the background: (1) Get the data submitted by the form (2) Determine whether the verification code is correct or not If the verification code is correct: 1. Encrypt the password in the form by MD5 MD5 moduleHttps://www.npmjs.com/package/md5 1,install cnpm install md5 --sav ...

Added by jjoves on Wed, 20 May 2020 20:28:13 +0300

vue+websocket+express+mongodb real-time project (live chat)

Continue to the previous project Use vuejs to imitate NetEasy Cloud music (for listening and searching) Later, I found that the previous project was very confused simply managed with vue's model, and then I went to see vuex, and planned to do a project practice, but did not want to do a duplicate project. This time, I gave up my face and planne ...

Added by Citizen on Fri, 05 Jul 2019 19:54:12 +0300

Node.js uses mongoose to manipulate mongodb

1. Software configuration: 1.node v8.9.3 2. npm 5.5.1 3. For the mongoose and MongoDB versions, see package.json below. // package.json { "name": "mongoosedemo", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "autho ...

Added by chadt on Sat, 18 May 2019 07:37:48 +0300