A module to provide customer event feed.
##To start
- modify
%endpoint%
in/public/js/eventFeed.js to your node program endpoint, e.g. localhost:8000/eventFeed (as I defined the socket namespace as
eventFeed, you can change that to other value in
lib/eventFeed_server.js`) $ npm install
to install all needed dependencies (fs / mime / socket.io)$ node server.js
to start the nodeJS server
- create a herok u app
- setup environment variable
endPoint
to your herokuapp and suffix it with /eventFeed (read above for reason) - linkup the heroku app with your github repo (if you fork this repo to your own repo)
- deploy the repo to Heroku and start run
- https://subtlebytes.herokuapp.com/
- Open console for log
- So far you should only see there is a text field / dropdown and a submit button. Try open your heroku app in multiple browser tabs with console panel open.
- Try type something and select a dropdown option and click the button.
- What you should see is: nothing show on the original browser, but console log appear in other browser tab : ]