Website at: https://chat-amw.herokuapp.com/
cd newDir
cp files
npm init
Add to packages.json "dependencies": { "express": "^4.15.3", "socket.io": "^2.0.3" }
npm install
git init
git add .
git commit -m "sadf"
heroku create
heroku buildpacks:set heroku/nodejs
git remote -v heroku
https://fast-island-27810.herokuapp.com/ | https://git.heroku.com/fast-island-27810.git
git push heroku master
heroku open
heroku has some good documentation too like this:
(usefull if you want to get the remote to update it...) https://devcenter.heroku.com/articles/git
window.scrollTo(0,document.body.scrollHeight); scroll to the bottom of the screen!!!