Ball.js – Node.js + Javascript + Canvas + Websocket
A some time ago, I started develop some personal projects with node.js to see how it works, after that I get involved in two projects with this technology at company. In the meanwhile I haven’t stopped code with javascript, nowadays javascript is one of the languages that I most like to work.
Thinking about that and to use as study case, me and Lucas Texeira stared a personal project to put in practice our javascript skills, and we produce what we called ball.js, this happened on August of this year. I have forgot to announce this project here, and so today I`m doing that.
Ball.js consists of one application written in pure javascript, in the server-side with node.js and in the client size using node.js, the idea behind this project, is allow two different clients play with a canvas circle between his browsers.
The code of project is not good enough as we want to be, but as the project was more an experiment for both of us, I think it’s good to share the knowledge that we get developing this.
As a demo I have create this video:
And the code is available at github, and there we have the description of how put to run in your machine.