|Re: How to get started with OrionNode? [message #1007453 is a reply to message #1007444]
||Tue, 05 February 2013 22:11
| Mark Macdonald
Registered: July 2009
To build on what John said above:|
a) Within the modules/orionode folder the code is structured as follows:
build/ -- client-side build
lib/ -- REST API handlers, static file support, and socket support are in here.
test/ -- tests
server.js -- reads command-line args, sets up the server with the REST APIs and other middleware we need, then runs it.
b) Keep in mind that the Node server currently only supports a subset of the full REST API that John linked. Look at the REST tests to get an idea of what the Node server supports. (see our doc page for how to run the tests.)
Aside from that, there is a small API related to node development that is quite early and currently undocumented.
c) Currently, you'll have to modify the server code to add additional REST APIs. But ease of consumption is something we want to support. I just opened a bug about refactoring the server so it can be .use()'d like normal middleware modules in Connect or Express.
[Updated on: Tue, 05 February 2013 22:13]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02302 seconds