This is the experimental application. I used requirejs to separate my server.js file. Also I created testListener file to show how to listen socket events in another files.
$ npm install
$ cd app
$ node server.js
Then open the http://localhost:3000