Node, advanced programmer
var http = require("http");
var url = require("url");
// handle is an array that maps the one-to-one correspondence between different access paths and the corresponding function of the business processing module
function start(route, handle) {
function onRequest(request, response) {
var pathname = url.parse(request.url).path ...
Added by jahtex on Sat, 18 Dec 2021 11:11:14 +0200
Addition, deletion, modification and query of mongodb database (with picture and demo)
Noun exegesis
In the screenshot below, some terms need to be explained for ease of understanding and application:
cuckoo is called the library name, that is, the name of the databaseusers is called the collection name, that is, the name of the colonyRight band_ Rows of IDS are called documentsAnd_ ID, username and password are called fieldsT ...
Added by h.a.visser on Fri, 17 Dec 2021 23:29:09 +0200
Express + Vue development environment (front and back end separation)
1, Introduction
The express framework is based on node JS web application framework can help you create a website with complete functions from front-end to back-end; Vue is a popular front-end framework, which is mainly used to build user interface, and has the characteristics of componentization and responsiveness; Therefore, it is understood ...
Added by TravisJRyan on Fri, 17 Dec 2021 14:11:02 +0200
How to get the get and post parameters in the Express framework
get parameters
Express is a web application development framework based on node platform. It provides a series of powerful features to help you create various web applications. It enables us to create website applications with more concise code.
Before learning how Express gets the get request, let's take a look at the Node's native get r ...
Added by bala_god on Fri, 17 Dec 2021 03:15:25 +0200
vue3. The 0 feature is continuously updated
1. Create an application instance
Each Vue application creates a new application instance by using the createApp functionThis application instance is used to register the "global" component in the application
const app = Vue.createApp({})
app.component('SearchInput', SearchInputComponent)
app.directive('focus', FocusDirective)
app.u ...
Added by jbille on Fri, 17 Dec 2021 02:51:00 +0200
10 minutes, using node JS creates a real-time early warning system for bad weather!
Some time ago, many disasters occurred in China. Zhengzhou high tech Zone, where we were at that time, experienced the situation of water and power failure. It's frightening to think of it!Therefore, it was decided to build a complete real-time weather early warning project, mainly using node JS and the third-party free interface for aggregatin ...
Added by comtek on Thu, 16 Dec 2021 17:15:35 +0200
Node.js advanced programming [ I ]
catalogue
1, Node Foundation
1. Course overview
2,Node.js architecture
3. Why node js ?
4,Node. Asynchronous IO for JS
5,Node.js main thread is a single thread
6,Node.js application scenario
7. Nodejs implements API services
8,Node.js global object
9,Node.js common global variables
10. process of global variable
2, Core module
1. ...
Added by cesarcesar on Fri, 10 Dec 2021 07:51:07 +0200
Js modular specification (commonJs, Es6 modular)
1, Js modularization
Common modular specifications:
1. CommonJS -- nodeJS modular specification
regulations:
Each file is a module with its own independent scope, variables, and methods (synchronous loading method), which is invisible to other modules. Inside each module, the module variable represents the current module. This variabl ...
Added by MyWebAlias on Wed, 08 Dec 2021 07:33:14 +0200
Run JUnit 5 test cases in Maven project
Introduction: This article demonstrates how to write JUnit 5 test cases and the process of running JUnit 5 test cases in Maven project.
For image download, domain name resolution and time synchronization, please click Alibaba open source mirror station
1, Write JUnit 5 test cases
If you are a java developer, you should be no ...
Added by Weirdan on Tue, 30 Nov 2021 20:56:25 +0200
Good intentions! I drew 10 diagrams of the principles of 7 cross domain solutions and made them into diagrams!
prefaceHello, I'm Lin Sanxin. Speaking the most difficult knowledge in the most easy to understand words is my motto. The foundation is advanced, and the premise is my original intention.It is necessary for us to connect the front-end interface with the back-end interface, but many students may ignore a possible problem in the docking process - ...
Added by cuvaibhav on Mon, 29 Nov 2021 09:49:12 +0200