This is a simple test checking dnode compatiblity using a browser based client as shown here:
https://github.com/substack/dnode/blob/master/README.markdown
I am doing each example independently so I can just pull it down and run it seperately.
git clone https://github.com/rockhowse/dnode-test-browser.git
Then run the following commands to install the proper node.js dependencies (dnode and friends) for this project:
C:\Users\Sexbox\Desktop\nodejs>cd dnode-test-browser
C:\Users\Sexbox\Desktop\nodejs\dnode-test-browser>npm i
...
[email protected] ./node_modules/dnode
+-- [email protected] ([email protected])
+-- [email protected] ([email protected] [email protected])
At this point, you can start up the server:
C:\Users\Sexbox\Desktop\nodejs\dnode-test-browser>node server.js
Open up the browser of choice (Chrome!) and navigate to the url:
And you should see the result in the browser:
n = 6600
tada! simple remote method run on the server using dnode with a browser based client =)
-rOcK