-
npm install bcryptjs --save查看全部
-
npm install grunt-contrib-watch --save-dev監(jiān)聽文件增刪改,重新執(zhí)行任務(wù) npm install grunt-nodemon --save-dev實(shí)時(shí)監(jiān)聽app.js npm install grunt-concurrent --save-dev監(jiān)控慢任務(wù)SASS LESS 等查看全部
-
mongoose 自增訪問量查看全部
-
.populate('from','name') .exec() 使用populate匹配數(shù)據(jù)庫(kù)然后exec取出內(nèi)容查看全部
-
require('./config/routes')(app)引用routes.js同時(shí)傳入app 在routes.js中:module.export = function(app){ app.use()... } 傳遞app查看全部
-
grunt -g grunt-cli -g grunt-contrib-watch --save-dev監(jiān)聽文件增刪改,重新執(zhí)行任務(wù) grunt-nodemon --save-dev實(shí)時(shí)監(jiān)聽app.js grunt-concurrent --save-dev監(jiān)控慢任務(wù)SASS LESS 等查看全部
-
為了可以再其他文件使用 mongoose.model() 拿到文件需要使用 fs 配置查看全部
-
注冊(cè)一個(gè)test 任務(wù): grunt.registerTask( 'test', ['mochaTest'] )查看全部
-
grunt下配置mocha:grunt.loadNpmTasks('grunt-mocha-test') concurrent: { tasks: ['nodemon', 'watch'], options: { logConcurrentOutput: true } }查看全部
-
npm i grunt-mocha-test --save 安裝mocha 測(cè)試工具查看全部
-
單元測(cè)試用mocha查看全部
-
使用 multipart/form-data 的文件提交,需要使用到 multipart 中間件查看全部
-
在保存新增的電影之前,添加一個(gè)中間件,用來處理上傳的海報(bào),需要用到 fs 和 path 第三方庫(kù)查看全部
-
node 模糊查詢匹配使用正則:new RegExp( q+ , '.*' ), 'i'查看全部
-
存儲(chǔ)玩新增的分類,然后將id 存到相應(yīng)的新增的電影的分類id 中查看全部
舉報(bào)
0/150
提交
取消