Tag : node.js

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

Installation npm install express –savenpm install express-generator -g Build project express -e bpm-admincd myappnpm installDEBUG=bpm-admin:* npm start References https://github.com/yuenshui/EJS-Dynamic-include-template http://startbootstrap.com/template-overviews/sb-admin-2/ http://www.expressjs.com.cn/starter/insta..

Read more

Preface Some beginners may be puzzled by the usage scenarios of computation attributes and listening attributes. This article mainly introduces the usage, usage scenarios and the differences between the two.Please stamp the code of this articleGithub blog, the paper finally feel shallow, everyone began to knock more code! Calculation attribute Introduction The calculation attribute is ..

Read more

This article is suitable whether there are reptiles or not andNode.jsBasic friends watch ~ 需求: UseNode.jsCrawling web resources, out-of-the-box configuration The content of the crawled web page isPDFFormat output 如果你是一名技术人员,那么可以看我接下来的文章,否则,请直接移步到我的github仓库,直接看文档使用即可 Warehouse address:Attached documentation and source code, don’t forget to give a.starOh The technology used for this requirement:Node.jsAndpuppeteer puppeteerOfficial website address:Puppeteer address Node.jsOfficial website address:Link description ..

Read more

This series of articles is《Node.js Design Patterns Second Edition》The translation of the original text and the reading notes were serialized and updated in GitHub.Synchronized translation links. Welcome to pay attention to my column, and subsequent blog posts will be synchronized in the column: Encounter’s Digging Column Programming Thinking of Zhihu’s Column Encounter Segmentfault front-end station ..

Read more

This series of articles is《Node.js Design Patterns Second Edition》The translation of the original text and the reading notes were serialized and updated in GitHub.Synchronized translation links. Welcome to pay attention to my column, and subsequent blog posts will be synchronized in the column: Encounter’s Digging Column Programming Thinking of Zhihu’s Column Encounter Segmentfault front-end station ..

Read more

This series of articles is《Node.js Design Patterns Second Edition》The translation of the original text and the reading notes were serialized and updated in GitHub.Synchronized translation links. Welcome to pay attention to my column, and subsequent blog posts will be synchronized in the column: Encounter’s Digging Column Programming Thinking of Zhihu’s Column Encounter Segmentfault front-end station ..

Read more