npm init -y
npm install express socket.io --save
"start": "node index.js"
In the Client side of your directory add following command to add socket.io client side installation..
npm install socket.io-client --save
Heroku Setup Insruction from Github
- Initialize the Git repository at the root level
- git init
- Add all the files to your local Git (staging)
- git add -a
- Commit your changes to your local Git
- git commit -m "commit message"
- Link to your GitHub repository
- git remote add origin < url of github repository >
- push your change
- git push --set-upstream origin master