摘要: Below we've already created an express server, but we want to start building a real-time Q&A moderation service and we've decided to use socket.io. Re 阅读全文
posted @ 2014-07-31 17:47 Zhentiw 阅读(246) 评论(0) 推荐(0)
摘要: Now let's create an express server which queries out for this search term and just returns the json. You'll need to do a few things: Require the expre 阅读全文
posted @ 2014-07-31 17:09 Zhentiw 阅读(153) 评论(0) 推荐(0)
摘要: Let's create a page which calls the twitter search API and displays the last few results for Code School. The first step is to construct the proper UR 阅读全文
posted @ 2014-07-31 16:45 Zhentiw 阅读(189) 评论(0) 推荐(0)
摘要: Instead of just writing out the quote to the response, instead render the quote.ejs template, passing in the quote name and quote body. Then finish th 阅读全文
posted @ 2014-07-31 16:33 Zhentiw 阅读(203) 评论(0) 推荐(0)
摘要: Create a route that responds to a GET request '/quotes/<name>', then use the param from the URL to retrieve a quote from the quotes object and write i 阅读全文
posted @ 2014-07-31 16:25 Zhentiw 阅读(163) 评论(0) 推荐(0)
摘要: Create an express route that responds to GET requests at the URL /tweets that responds with the filetweets.html located in the same directory as app.j 阅读全文
posted @ 2014-07-31 15:30 Zhentiw 阅读(138) 评论(0) 推荐(0)
摘要: Update the versions on your dependencies to be a little more flexible, adding the ~ in front of your versions. package.json { "name": "My Awesome Node 阅读全文
posted @ 2014-07-30 20:29 Zhentiw 阅读(166) 评论(0) 推荐(0)
摘要: Add two dependencies to your package.json file, connect and underscore. You'll want to useconnect version 2.2.1 and underscore version 1.3.3. package. 阅读全文
posted @ 2014-07-30 20:25 Zhentiw 阅读(162) 评论(0) 推荐(0)
摘要: Content provider的作用:Content providers manage access to a structured set of data. They encapsulate the data, and provide mechanisms for defining data s... 阅读全文
posted @ 2014-07-01 17:30 Zhentiw 阅读(253) 评论(0) 推荐(0)
摘要: package com.example.thenewboston; import android.app.ListActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; 阅读全文
posted @ 2013-11-21 06:29 Zhentiw 阅读(217) 评论(0) 推荐(0)