Websocket & Heroku

10.26.2015 |

research

This week I worked on getting the color exercise using websocket completed. I wanted to create a site where you can go to a remote URL, click a button, and the background color of the site would change. I also needed to get this working so anyone can go to the URL and change the color. I had a lot of trouble with this. I’m not familiar with hosting apps on Heroku and how the platform is set up. But Heroku supports Node.js apps, and thats what I needed. To do this, I took Heroku’s tutorial websocket application and began tweaking it. I used my knowledge of JavaScript to pull a random color out of an array every time a button on the page was clicked. You can view it online here: https://hidden-dawn-4361.herokuapp.com/

Time Breakdown