10 Minutes Implementation of Short Link Service (Node + Express + MongoDB)

Short links are more or less used by us. The so-called short links are to generate a shorter link according to the long original link url. Visiting short links can jump to the corresponding original link. This is good in: 1. url is more beautiful; 2. It is easy to save and disseminate; 3. Some websites have word limit in content publishing, sho ...

Posted by mansuang on Wed, 21 Aug 2019 11:16:42 +0200

Implementation of Single Sign-on (SSO) with Authing in 10 minutes

Single Sign On (SSO) is one of the most popular solutions for business integration. SSO is defined as an application system in which users can access all trusted applications with only one login. Implementing single sign-on Before the beginning If you don't know about user pooling, single sign-on, and authentication authorization, read it first ...

Posted by jursten on Sat, 17 Aug 2019 16:17:48 +0200

Cendertron, Sliding Authentication Code Bypass Strategy for Dynamic Crawlers

Cendertron, Sliding Authentication Code Bypass Strategy for Dynamic Crawlers stay Cendertron In the Safe Dynamic Crawler series, we introduce the design of the safe crawler and the cluster building of the crawler in turn. In this article, we discuss the bypass strategies for sliding authentication codes. The strategies and codes used in this a ...

Posted by kjharve on Wed, 31 Jul 2019 19:15:39 +0200

NodeJs concise tutorial

NodeJs concise tutorial will start from scratch to learn about NodeJs and help JS developers build a full stack development technology stack! Focus on getting more NodeJs articles This article is the ninth chapter of NodeJs concise tutorial. It will introduce the basic operation of NodeJs net module (TCP server/client). What is TCP? Transmissio ...

Posted by cicibo on Wed, 24 Jul 2019 06:09:41 +0200

Document manipulation in the base section of node

Write in front File operations in node are quite frequent, and there are many APIs that provide various operations on files and folders. The following is a case study of common APIs to understand their specific usage. A read file fs.readFile(), fs.readFileSync() fs file operation basically includes two ways of synchronization and asynchrony, wh ...

Posted by mlummus on Sun, 21 Jul 2019 07:06:16 +0200

Event Loop in Node.js

What is Event Cycle As we all know, JavaScript is single-threaded, and Nodejs can implement non-blocking I/O operations, because Event Loop exists. Event Loop has the following stages, a rectangle represents a stage, as follows: ┌───────────────────────┐ ┌─>│ timers │ │ └──────────┬────────────┘ │ ┌──────────┴──────────── ...

Posted by Matty999555 on Fri, 19 Jul 2019 08:22:48 +0200

Noejs WeChat Public Number Development --- 9. Crawling website material timed push message

Last article: Noejs WeChat Public Number Development - 8. Mass Message , briefly introduces the implementation of advanced group interface, and illustrates it with a simple example.The content of this section may not have much to do with the development of WeChat Public Number itself, but the content involved in my small project, the knowledge ...

Posted by WhiteCube on Mon, 08 Jul 2019 19:11:03 +0200

Day05 - Flex Chinese Guide to Scalable Image Wall

Day05 - Flex Chinese Guide to Scalable Image Wall Author: liyuechun Introduction: JavaScript30 yes Wes Bos A 30-day challenge to launch. The project provides 30 video tutorials, 30 challenge start documents and 30 challenge solution source code free of charge. The goal is to help people write in pure JavaScript, without using frameworks and li ...

Posted by Chelsove on Tue, 11 Jun 2019 21:15:26 +0200

mongodb database and data paging

When working on a small project of your own, you learned about mongodb non-relational databases and used mongoose encapsulated query methods, including the limit and skip methods used for database paging, which are recorded here. 1. mongodb database connection Referring to the official website documents, the corresponding parameters are as foll ...

Posted by Torleif on Sun, 19 May 2019 05:58:20 +0200

Node.js-Ali Egg's Multiprocess Model and Interprocess Communication

Preface Recently, Egg has been used as a low-level framework development project, curious about the management implementation of its multi-process model, so I learned something and recorded it incidentally. If there are any mistakes in the article, please spray it lightly. Why multi-process is needed With the development of science and technolo ...

Posted by greenday on Sun, 12 May 2019 12:42:14 +0200