Skip to content

rockhowse/dnode-test-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

...

dnode@0.9.3 ./node_modules/dnode

+-- jsonify@0.0.0

+-- lazy@1.0.7

+-- traverse@0.4.6

+-- dnode-protocol@0.1.1 (traverse@0.5.2)

+-- socket.io@0.8.6 (policyfile@0.0.4 redis@0.6.7)

+-- socket.io-client@0.8.6

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:

http://localhost:8080

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

About

simple dnode test using a browser client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published