Skip to content

Latest commit

 

History

History
92 lines (59 loc) · 3.85 KB

nodejs.md

File metadata and controls

92 lines (59 loc) · 3.85 KB

Node.js 资源汇总

CLI 开发

Terminal Kit
https://github.com/cronvel/terminal-kit
A full-blown terminal lib featuring: 256 colors, styles, keys & mouse handling, input field, progress bars, screen buffer (including 32-bit composition and image loading), text buffer, and many more... Whether you just need colors & styles, build a simple interactive command line tool or a complexe terminal application: this is the absolute terminal lib for Node.js!

Framework

NodeBB
https://nodebb.org/
A better faster forum platform for the modern web.
The next generation forum software that's free and easy to use.

MEAN
http://mean.io/
The Friendly & Fun Javascript Fullstack for your next web application MEAN is an opinionated fullstack javascript framework - which simplifies and accelerates web application development.

进程&服务管理

forever nodemon pm2 supervisor

forever 的接口不是很好,功能也没有 pm2 强大。启动同名文件时需要 --uid 参数,每次启动还得加 -a ,挺烦的。更多请参考:

推荐: nodemon pm2 ,但 pm2 的 cluster_mode 不太稳定,建议优先选 fork_mode

log

https://github.com/winstonjs/winston
https://github.com/trentm/node-bunyan

异步编程

Async.js
Q
FRP(Functional Reactive Programming)

推荐从 Async 入手,简单强大,比 Q 容易上手。

python 中有 asyncio

异步编程之co——源码分析 http://www.html-js.com/article/3016

lib

zone Flow control and error handling for Node.js
bluebird
http://highlandjs.org/

Server

Harp : The static web server with built-in preprocessing. Harp serves Jade, Markdown, EJS, CoffeeScript, Sass, LESS and Stylus as HTML, CSS & JavaScript—no configuration necessary.

资源库

技术文章

收录一些经典文章:

关于 node 在生产环境部署的一些讨论
http://bytearcher.com/articles/semver-explained-why-theres-a-caret-in-my-package-json/
https://nodejs.org/en/blog/npm/managing-node-js-dependencies-with-shrinkwrap/
https://medium.com/@bestander_nz/my-node-modules-are-in-git-again-4fb18f5671a#.z1l70778d
https://strongloop.com/strongblog/node-js-deploy-production-best-practice/
建议在发布是用 shrinkwrap 锁定依赖版本,相关讨论
https://addyosmani.com/blog/checking-in-front-end-dependencies/#more-5510

其它

fibjs 一个类似 node 的环境,fibjs 是一个建立在 Google v8 Javascript 引擎基础上的应用服务器开发框架,不同于 node.js,fibjs 采用 fiber 解决 v8 引擎的多路复用,并通过大量 c++ 组件,将重负荷运算委托给后台线程,释放 v8 线程,争取更大的并发时间。

WebSockets the UNIX way
Full duplex messaging between web browsers and servers