forked from 3mitch/Node-PubSub-with-Faye-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
peterdm/Node-PubSub-with-Faye-demo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Demo app built from http://www.youtube.com/watch?v=WHtwsH1DUnc Updated and tested code to work with these dependencies: Node: 0.4.5 NPM: 0.3.18 Express: 2.2.2 Faye: 0.5.5 Requires Node and NPM echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc . ~/.bashrc mkdir ~/local mkdir ~/node-latest-install cd ~/node-latest-install curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 ./configure --prefix=~/local make install # ok, fine, this step probably takes more than 30 seconds... curl http://npmjs.org/install.sh | sh Requires Express and Faye npm install express npm install faye Once installed, run node server.js to start the server on port 8000 In a browser open localhost:8000/client.html In a terminal, run one of the followingÉ post to server with json: curl -X POST -H "Content-Type:application/json" -d '{"message": "hello pub sub dudes"}' http://localhost:8000/message post to server with form data: curl -X POST -H "Content-Type:application/x-www-form-urlencoded" -d 'message=hello form' http://localhost:8000/message
About
Node PubSub with Faye demo
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published