3

What's a good architecture/pattern for developing server-side node.js?

I will be using a backbone.js MVC architecture on the front-end, transporting over websockets.

Examples/explanations would be great! Thanks!

boom
  • 10,856
  • 9
  • 43
  • 64

1 Answers1

3

MVC on the server-side works great, too. Try Express and Socket.IO. Express has an executable called express that should be available if you install from npm. When you run express, it makes a skeleton file structure of a skeleton app. Here's a simple example of an MVC model using Express.

EhevuTov
  • 20,205
  • 16
  • 66
  • 71
  • That's far too vague. Please go into details about why it's great. How it integrates with node. – Raynos Sep 22 '11 at 23:33
  • I'm using socket.io. Any examples of what good server-side MVC should look like in node? – boom Sep 23 '11 at 14:40
  • @boom, I understand your question better now. I edited my answer that I hope will help you better. – EhevuTov Sep 23 '11 at 15:23