diff options
author | brandon flowers <brandonflowers@gmail.com> | 2013-05-04 14:13:34 -0400 |
---|---|---|
committer | brandon flowers <brandonflowers@gmail.com> | 2013-05-04 14:13:34 -0400 |
commit | 1e3ecc2a1194c9261a5a75771dcf153755042981 (patch) | |
tree | 68a6d7203067b117582f15d4db4ac17075ce98b9 /examples/nodejs-mongodb-mongoose-restify | |
parent | 6043b32cff1ceaceca5abc46b1110d3453d4d172 (diff) | |
download | backbonetutorials-1e3ecc2a1194c9261a5a75771dcf153755042981.zip backbonetutorials-1e3ecc2a1194c9261a5a75771dcf153755042981.tar.gz backbonetutorials-1e3ecc2a1194c9261a5a75771dcf153755042981.tar.bz2 |
copy tweak in the readme file
Diffstat (limited to 'examples/nodejs-mongodb-mongoose-restify')
-rw-r--r-- | examples/nodejs-mongodb-mongoose-restify/README.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nodejs-mongodb-mongoose-restify/README.md b/examples/nodejs-mongodb-mongoose-restify/README.md index bf46ba6..bf9a16d 100644 --- a/examples/nodejs-mongodb-mongoose-restify/README.md +++ b/examples/nodejs-mongodb-mongoose-restify/README.md @@ -3,9 +3,9 @@ There are basically two big parts to this demo - two servers. The first server, httpServer, serves up static html/js/css to the browser and the second, mongodbServer, is purely for saving and retrieving data from the mongodb. -I've put both servers in the server.js which makes it extremely long and challenging to maintain but it does the job for this demo. Also, each server is listening on its own port. If you required only one public port, you could choose one server to listen on that port then pass the events to the other port which may be interested in different routes. +I've put both servers in the server.js which makes it extremely long and challenging to maintain but it does the job for this demo. Also, each server is listening on its own port. If you are only allowed access to one public port, you could choose one server to listen on that port then pass the events to the other server which may be interested in different routes. For instance, in this case, if the http server listens for a /messages route, it could trigger an event and pass that to the mongo server. -In addition to server.js, I've refactored it into two separate files: server-http.js and server-mongo.js. +In addition to server.js, I've also refactored it into two separate files: server-http.js and server-mongo.js. ## HTTP SERVER |