Giter Site home page Giter Site logo

xiakeweian / koajs-design-note Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chenshenhai/koajs-design-note

0.0 0.0 0.0 805 KB

《Koa.js 设计模式-学习笔记》已完结 😆

Home Page: https://chenshenhai.com/koajs-design-note

License: MIT License

koajs-design-note's Introduction

Koa.js 设计模式-学习笔记

关于本书

koajs-design-note mini

更多前端技术学习开源学习教程可关注公众号 DeepSeaCode (大海码 )

qrcode_for_gh_959d1c4d729a_258


前言

之前写过一本 《Koa2进阶学习笔记》 作为Koa的入门教程。很多知识点都是一笔带过,没有深入的讲解。这一本书是通过Koa.js的常用中间件实现原理,举一反三来讲解一些Node.js在Web开发过程中的原理和设计模式。

Koa.js 是一个极其精简的Web框架,只提供一下两种功能:

  • HTTP服务
    • 处理HTTP请求request
    • 处理HTTP响应response
  • 中间件容器
    • 中间件的加载
    • 中间件的执行

剩下的其他Web服务所需的能力,就根据开发者的需求去自定义开发,留下了很大的灵活空间,提高了Web服务的开发成本。在我的理解中,Koa.js的灵活度带来的开发成本有以下两种:

  • 框架的设计
  • 中间件的选择

框架的设计,这一因素比较复杂,后续会新开一本书讲解。本书主要是解析常用的Koa.js中间件,抽象出相关中间件的功能原理和实现方式,用demo让读者理解原理,减少对官方源码的依赖,尽量达到“授人予渔”。

目录

koajs-design-note's People

Contributors

chenshenhai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.