开发者

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

开发者 https://www.devze.com 2023-04-07 11:09 出处:网络
What\'s a good architecture/pattern for developing server-side 开发者_JS百科node.js? I will be using a backbone.js MVC architecture on the front-end, transporting over websockets.

What's a good architecture/pattern for developing server-side 开发者_JS百科node.js?

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

Examples/explanations would be great! Thanks!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号