NodeJS常用库常用插件的文档

NodeJS 模块文档

Express: http://expressjs.com/en/4x/api.html

Async: https://caolan.github.io/async/docs.html

Request: https://www.npmjs.com/package/request

UnderScore: http://underscorejs.org/

Lodash: http://lodashjs.com/ https://lodash.com/

MySQL: https://www.npmjs.com/package/mysql

关于如何使用 Pool 连接池, 如何使用 Transaction 事务

官方文档

process: https://nodejs.org/dist/latest-v8.x/docs/api/process.html

event: https://nodejs.org/api/events.html

NodeJS 测试模块

代码自动提示

JSCS: http://jscs.info

规则编辑 http://jscs.info/rules

Gulp 自动化

Gulp: https://www.gulpjs.com.cn/docs/api/

Gulp 进行自动化测试打包流程: https://www.cnblogs.com/GameEngine/p/5229576.html

Gulp 与 Mocha 合并进行自动化测试: https://www.gulpjs.com.cn/docs/recipes/mocha-test-runner-with-gulp/

SuperTest 测试 express 接口

SuperTest: https://www.npmjs.com/package/supertest

super test 支持 super agent 的所有形式的操作: https://visionmedia.github.io/superagent/

Chai 进行断言的编写

Chai: https://www.npmjs.com/package/chai http://chaijs.com/

如何使用 chai.should(): http://chaijs.com/api/bdd/

Should: https://www.npmjs.com/package/should

Mocha 进行测试

Mocha: https://mochajs.org/

https://www.cnblogs.com/Leo_wl/p/5734889.html

一些奇奇怪怪的错误

连接 mysql 报”connect ECONNREFUSED 错误的解决方法”

参考: https://yq.aliyun.com/articles/225804

mysql.createConnection({
    "host": "127.0.0.1",
    "port": "3306",
    "user": "root",
    "password": "123456",
    "database": "test",
    "socketPath": "/tmp/mysql.sock"
});

有些 mysql 安装的时候不是mysql.sock, 用 find 命令 find / -name *.sock

Donate - Support to make this site better.
捐助 - 支持我让我做得更好.