Category : node.js

scaffold vue-cli,create-react-app、react-native-cliThese are excellent scaffolds. Through scaffolds, we can quickly initialize a project without having to configure it step by step from scratch, effectively improving the development experience. Although these scaffolds are excellent, they are not necessarily suitable for our actual application. We can customize a scaffold (or company-wide scaffold) to improve our development efficiency. ..

Read more

Translation: Liu Xiaoxi Original link:https://devinduct.com/blogpos … What is Proxy Usually, when talking about JavaScript language, we are talking about the new features provided by ES6 standard, and this article is no exception. We will discuss JavaScript proxies and their functions, but before we go into further research, let’s first look at what Proxy is defined. ..

Read more

Translation: Liu Xiaoxi Original link:https://dmitripavlutin.com/ja … Due to limited level, some translations in this article may not be accurate enough. If you have better ideas, please point them out in the comment area. More articles to stamp: https://github.com/YvetteLau/ … Any programming language has functions beyond basic usage, which benefits from successful design and attempts to ..

Read more

H5 series Ten Ways to Optimize Page Loading Speed Essay classification-HTML5 40 Most Important Technical Points in HTML5 Meta collation Details of Web Performance Management HTML5 offline cache -manifest introduction JS series Writing High Performance JavaScript Interesting JavaScript Native Array Function JavaScript Data Access Performance Optimization Scheme Nine Sorting Algorithms Implemented by JavaScript Javascript-Arguments Object ..

Read more

Recently, I am studying deeply and trying to master it as soon as possible.Node.jsConsider writing an article to record what needs to be recordedConcept、Methodas well asCode instanceTo facilitate searching in actual projects. This article will be updated continuously, or another article will be published to discuss more core and key technical issues. This is a ..

Read more

Shennan Avenue Town Building It is not difficult to define a communication protocol of one’s own, the key lies in the usability, expandability and practicability of complex business scenarios of this protocol. In instant messaging applications, both the client and the server can be regarded as a server. Let’s review it togetherwebsocket WebSocketIs a kind ..

Read more

Install express-ejs-layouts npm install express-ejs-layouts New default layout layout.ejs <!DOCTYPE html> <html> <head> <title><%= title %></title> <% include header.ejs %> </head> <body> <div id=”wrapper”> <!– Navigation –> <% include menu.ejs %> <div id=”page-wrapper”> <div class=”container-fluid”> <%- defineContent(‘pageSection’) %> </div> <!– /.container-fluid –> </div> <!– /#page-wrapper –> </div> <!– /#wrapper –> <!– foot js–> <% include ..

Read more

node:4.4.5 docker pull daocloud.io/library/node:4.4.5 Install express docker run -it daocloud.io/library/node:4.4.5 /bin/bash node -v npm -v npm install express –g npm install -g express-generator express –version Make a mirror image docker commit -m “node4.4.5+npm+express4.13.4” dockerfile FROM express:4.13.4 ADD bin/ /home/app/bin/ ADD node_modules/ /home/app/node_modules/ ADD public/ /home/app/public/ ADD routes/ /home/app/routes/ ADD views/ /home/app/views/ ADD app.js /home/app/app.js ADD ..

Read more