Skip to content

gordonchanhk/eventFeed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Event Feed

A module to provide customer event feed.

##To start

  1. 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`)
  2. $ npm install to install all needed dependencies (fs / mime / socket.io)
  3. $ node server.js to start the nodeJS server

Run on Heroku

  1. create a herok u app
  2. setup environment variable endPoint to your herokuapp and suffix it with /eventFeed (read above for reason)
  3. linkup the heroku app with your github repo (if you fork this repo to your own repo)
  4. deploy the repo to Heroku and start run

Example:

  1. https://subtlebytes.herokuapp.com/
  2. Open console for log

Rough explanation

  1. 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.
  2. Try type something and select a dropdown option and click the button.
  3. What you should see is: nothing show on the original browser, but console log appear in other browser tab : ]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published