Iām learning all the technology needed to create single page applications (SPA). As a summary, I want to implement my application in separate layers, where the interface only interacts with internal components using the web services API (json via socket.io). The front-end will be mainly Backbone.js (+ html5, css3, jquery) and back-end using node.js (+ mongodb, express, etc.). The division of node usage is due to socket.io.
My questions may sound pretty simple, but I still don't get it.
in this configuration is it necessary to use Express.js? as far as I know, the main functions of Express.js offer web APIs and web page service through routing. But since I want to create an entire interface with Backbone.js as a SPA and serve CRUD through Socket.io, is Express.js needed in my project?
in this configuration, node sever will just listen for socket.io crud commands, right? there is no need to use Express.js as an api server for relaxation, right?
If I only need the web API and real-time CRUD multicast operations (for example, you can do with Socket.io), do I need to use node.js as an internal one, or can I use another technology?
Hope someone can tell me some answers, and very well in advance for your time and support.
FOR EDITORS: since those months when I had problems with accepted answers. I always accept them, but stackoverflow always shows that I do not. I would really appreciate if any stackoverflow editor could help me with this problem.
source share