Skip to content

Instantly share code, notes, and snippets.

@hayeah
Last active July 13, 2021 06:57
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hayeah/8e98cb08d1a12e87159d to your computer and use it in GitHub Desktop.
Save hayeah/8e98cb08d1a12e87159d to your computer and use it in GitHub Desktop.
NodeJS Express 训练营课程安排

暖身周 (可选)

  • 写一个简单的 NPM package
  • 用 mocha 写测试
  • 用 CoffeeScript 写 NPM package
  • 实现 JS 类 (练习原型链)

第一周 - Connect Middleware

  • 实现穷人的 HarpJS (练习使用 middleware)
  • 实现 Connect 的中间件机制

第二周 - Express App

  • 实现 Express 路由
  • 实现路径匹配
  • 实现 HTTP 动词
  • 实现 @luin 的 dependency injection 中间件 (可选)

第三周 - HTTP 协议的应用

  • 实现 content negotiation
  • 实现 conditional get
  • 实现档案下载
  • 实现档案上传
  • 实现 websocket 协议
@42thcoder
Copy link

用 es6 呗, 感觉 CoffeeScript 还是太小众了

@escray
Copy link

escray commented Apr 30, 2015

已经报完名了,仔细看一下课程大纲,发现对我而言还是挺有难度的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment