Yogu/curvy-server — pull request #1 by coens97 (2013-03-30 14:58:20+00:00)
Title: Removed node_modules, added package.json changed port settings

Hey,

I know it's pretty hard to start a node.js project so i like to help you out.

Never add the node_modules folder let it install trough package manager.
For example the package websocket compiles code by installation, so the package won't work on other operation systems or other architectures.

Changed the port setting to "process.env.PORT||8888". The application keeps running on port 8888 but when you deploy it the "cloud service" can choose the port.

I changed the filename index.js to app.js. The main file of a node.js project is almost always app.js.

I also added package.json, pretty important file. You should change the Author and contributors. In this file you must define which packages you are using and on which node.js version this project needs.

Thanks to package.json you can install the packages using "npm install"
And start the server using "npm start" or you can do it the other way "node app"

Don't forget to add README.md
Just the instructions again
Install: "npm install"
Run: "npm start" or "node app"

Some great examples for node.js multiplayer games are https://github.com/mozilla/BrowserQuest
and i'm also building my own
https://github.com/coens97/nodeWorld

I would reccomend this packages
express for http server
socket.io for websockets

I hope i helped you out.
If you want help just aks me.

Coen Stange