/socket.io

this is a sample app to learn how to use socket.io

Primary LanguageJavaScript

This is a chat app that uses socket.io & deploys through heroku directly from the CLI

URL

*** Reminder for myself ***

Add scripts & engines after main like the example below

"main": "server/server.js",
   "scripts": {
       "start": "node server/server.js",
       "test": "echo \"Error: no test specified\" && exit 1"
   },
   "engines": {
       "node": "6.9.1"
   },

After creating github repo and pushing code up run heroku create After heroku create --> git push heroku master


*** Additional challenge for myself ***

Replace express webserver with hapi.


*** Continue from 15:59 lec. 106 ***


*** => vs function() ***

The => is only supported in chrome browser. Anything which needs support for others must use the function() syntax.