Most of this stuff is really designed around doing Single Page Apps, where most of your business logic is in JS that runs on the frontend, and only the critical security and validation stuff and such is on the server. Generally, the server just slings JSON back and forth to the database and does some validations and such instead of rendering full HTML pages with templates. If it makes sense to build a particular app like this, it can result in a really slick user experience.