测试

Testing in ES6 with Mocha and Babel 6 Test a Node RESTful API with Mocha and Chai

es6

Writing Your Node.js Apps Using ES6 babel-nodemon-nodejs example-node-server npx: npm 5.2.0 内置的包执行器

调试

Node.js 调试技巧

node-config环境配置

mongodb配置用auth

mongo mongod mongod --config /usr/local/etc/mongod.conf

  1. admin 添加master角色
db.createUser({user:"master",pwd:"123456",roles:[{"role":"userAdminAnyDatabase","db":"admin"}]})  

#关闭mongodb
#mac
killall mongod
#ubuntu
service mongod stop

results matching ""

    No results matching ""