上一页 1 ··· 474 475 476 477 478 479 480 481 482 ··· 494 下一页
摘要: Mongoose allows you to easily select resources by ID from your MongoDB. This is an important aspect to creating an API.Server.js'use strict';var expre... 阅读全文
posted @ 2014-12-10 06:16 Zhentiw 阅读(305) 评论(0) 推荐(0)
摘要: Learn how to import data into your MongoDB and then use Express to serve a simple Node.js API.Import data into MongoDB:For exmaple, you have an data.j... 阅读全文
posted @ 2014-12-10 04:23 Zhentiw 阅读(352) 评论(0) 推荐(0)
摘要: Using WebStrom can easily debug the Node applcation.For example, we have an Node+Express application.server.js:/** * Created by Answer1215 on 12/9/201... 阅读全文
posted @ 2014-12-10 03:22 Zhentiw 阅读(298) 评论(0) 推荐(0)
摘要: With a node package manager's (npm) package.jsonscriptproperty, you can preconfigure common tasks like running unit tests withnpm $SCRIPT_NAME.package... 阅读全文
posted @ 2014-12-09 23:42 Zhentiw 阅读(755) 评论(0) 推荐(0)
摘要: CoomonJS modules provide a clean syntax for importing dependencies. This lesson will take a look at the basics of using CommonJS modules.app.jsvar dep... 阅读全文
posted @ 2014-12-09 04:58 Zhentiw 阅读(199) 评论(0) 推荐(0)
摘要: npm init:For create package.json file which will recode the dependence.npm install:You can also write like:npm i This is a shortcut way to write npm i... 阅读全文
posted @ 2014-12-09 04:07 Zhentiw 阅读(1267) 评论(0) 推荐(0)
摘要: Angular overrides quite a few existing HTML elements and attributes. This can be a useful technique in our own applications. We will build a directive... 阅读全文
posted @ 2014-12-09 01:30 Zhentiw 阅读(285) 评论(0) 推荐(0)
摘要: Simple Redis CommandsLet's start practicing using the redis key-value store from our node application.Require theredismodule and assign it to a variab... 阅读全文
posted @ 2014-12-06 17:57 Zhentiw 阅读(705) 评论(0) 推荐(0)
摘要: Using a Router InstanceLet's refactorapp.jsto use aRouterobject.Create a new router object and assign it to theroutervariable.var router = express.Rou... 阅读全文
posted @ 2014-12-05 00:08 Zhentiw 阅读(624) 评论(0) 推荐(0)
摘要: Route InstanceLet's rewrite our cities routes using a Route Instance.Create a newRoute Instancefor the'/cities'URL path and assign it to thecitiesRout... 阅读全文
posted @ 2014-12-04 23:34 Zhentiw 阅读(404) 评论(0) 推荐(0)
上一页 1 ··· 474 475 476 477 478 479 480 481 482 ··· 494 下一页