Browse files

tweaking node version to 0.6.9

  • Loading branch information...
1 parent 29959b8 commit 8d4408b7d411da9c4fbd54256fa5d51548bfda4e @benzenwen benzenwen committed Mar 13, 2012
Showing with 20 additions and 12 deletions.
  1. +15 −8 README.md
  2. +3 −4 app.js
  3. +2 −0 package.json
View
23 README.md
@@ -1,34 +1,41 @@
# Tractor Push
This is a demonstration of a socket.io client that accepts two message streams from a server asynchronously. The left box updates on the arrival of the 'all messages' stream: simple, array, or complex. The right box updates from a message stream of only 'complex' type. The streams are independent but draw from the same source.
+A running version of the demo is at: TODO ADD URL
+
The server is node.js running socket.io. It reads from a capped MongoDB database with a tailable cursor. A secondary set of servers (it happens to be in Ruby) originally wrote to the database.
+Note: Sequence numbers may not be unique.
+
+In the online demo, the node.js and Ruby components are running on Heroku's Celedon Cedar stack. The MongoDB database is hosted at MongoLab. See this URL 'TODO: add URL' for more information.
+
# HOWTO
See: (TODO: URL) for detailed instructions on how to run the demo, but succintly:
* Create a mongodb database 'testdatabase' with a capped collection 'messages' on localhost OR use Heroku and create a MONGOLAB database.
-* Run tractorpush-inserter to insert files TODO NEED URL
+* Run tractorpush-inserter-ruby to insert files TODO NEED URL
* Run 'npm install' Run tractorpush-server (this project): 'node.js app.js'
* Point your browser to http://localhost:2000 and enjoy
+# Inserter Ruby
+The insertion code is at https://github.com/mongolab/tractorpush-inserter-ruby
+
# REQUIRES (ok, it may run with something less)
* Node.js 0.6.9 +
* npm 1.1.0-3
* see package.json for more dependencies (socket.io and mongodb)
-Note: Sequence numbers may not be unique.
-
-The node.js and Ruby components are running on Heroku's Celedon Cedar stack. The MongoDB database is hosted at MongoLab. See this URL 'TODO: add URL' for more information.
-
# TODO
* Make this demo more obvious what to do if a newbie (or a pointer to the blog entry).
* Make this demo server insert one document if it finds a blank database (which means creating a capped collection.) or at least send a reasonable message to the user somehow.
-Original Demo: 2012 March
+Original Demo: 2012 March by ObjectLabs Corporation, makers of MongoLab.com hosted MongoDB.
+
+If you have comment or questions please contact us at @mongolab on Twitter or support AT mongolab.com. Thanks for looking.
## Legal stuff
Copyright 2012 ObjectLabs Corporation.
-Code licensed underthe Apache License, Version 2.0 (the "Apache
+Code licensed under the Apache License, Version 2.0 (the "Apache
License"); you may not use this file except in compliance with
the Apache License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
@@ -38,6 +45,6 @@ BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied. See the Apache License for the specific language governing
permissions and limitations under the Apache License.
-Non-code content licensed underCreative Commons
+Non-code content licensed under Creative Commons
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) at
http://creativecommons.org/licenses/by-sa/3.0/
View
7 app.js
@@ -9,7 +9,7 @@
// Copyright 2012 ObjectLabs Corp.
// isCapped() & intervalEach() is also Copyright 2009-2010 Christian Amor Kvalheim
// see package.json for attributions
-// ObjectLabs is the maker of MongoLab
+// ObjectLabs is the maker of MongoLab.com, a cloud, hosted MongoDB service
//
@@ -26,9 +26,8 @@
// limitations under the Apache License.
//
-// NB: I don't provide a durable connection to mongodb that retries
-// on failures with backoff. Instead I'm relying on a PaaS's durable
-// restarts.
+// NB: I don't provide a durable connection to mongodb that retries on
+// failures. Instead I'm relying on a PaaS's durable restarts.
//
var fs = require('fs'),
View
2 package.json
@@ -4,6 +4,8 @@
"dependencies": {
"mongodb": ">=0.9.9",
"socket.io" : "" },
+ "engines" : {
+ "node" : "0.6.9"},
"keywords" : ["mongodb", "mongo", "mongolab", "node.js", "node", "socket.io", "WebSockets"],
"version": "0.9.0",
"author" : "Ben Wen",

0 comments on commit 8d4408b

Please sign in to comment.