随笔分类 - Node.js+ Express.js
摘要:Asynchronous Code in Node 历史上,Node开发者只能用回调和事件emitters。 现在可以使用一些异步的语法: async module Promises Async/await funcitons Promise the docs, 在hook下,一个基本的promis
阅读全文
摘要:新增的章节。 If you are not using HTTP/2, then you are losing out on big improvements. HTTP/2相比http/1有很大的区别。例如: multiplexing 多路复用 server push of assets 如果您没
阅读全文
摘要:Getting Node.js Apps Production Ready 部署程序需要知道的方面: Environment variables Express.js in production Socket.IO in production(在线文章缺失这章) Error handling Nod
阅读全文
摘要:Real-Time Apps with WebSocket, Socket.IO, and DerbyJS 实时程序的使用变得越来越广泛,如传统的交易,游戏,社交,开发工具DevOps tools, 云服务,新闻。 之所以如此是因为技术的进步。更大的带宽用来传输数据和更多的计算来处理和取回数据。 H
阅读全文
摘要:Building Node.js REST API Servers with Express.js and Hapi Modern-day web developers use an architecture consisting of a thick client and a a thin bac
阅读全文
摘要:参考:博客 https://www.cnblogs.com/chentianwei/p/10268346.html 参考: mongoose官网(https://mongoosejs.com/docs/models.html) 参考: 英文:Boosting Node.js和MongoDB with
阅读全文
摘要:开始: Mongo Shell 安装后,输入mongo进入控制台: Insert Document 使用控制台insert和执行查询语法: db.collection.insertOne() Query Document 例子: 查询嵌套属性: "field.field": value 查询在数组中
阅读全文
摘要:Persistence with MongoDB and Mongoose https://github.com/azat-co/practicalnode/blob/master/chapter5/chapter5.md 学习mongodb的官方网站: https://university.mon
阅读全文
摘要:Template Engines: Pug and Handlebars 一个模版引擎是一个库或框架。它用一些rules/languages来解释data和渲染views。 web app中,views可能是HTML pages(或部分它们),但是也可以是JSON, XML文件, 或者在deskto
阅读全文
摘要:TDD and BDD for Node.js with Mocha TDD测试驱动开发。自动测试代码。 BDD: behavior-driven development行为驱动开发,基于TDD。一种自然化的测试语言。 例如,使用expect(response.status).to.equal(20
阅读全文
摘要:大神的node书,免费 视频:https://node.university/courses/short-lectures/lectures/3949510 另一本书:全栈JavaScript,学习backbone.js node.js and MongoDB. 1,2章: 第一章 Node.js
阅读全文
浙公网安备 33010602011771号