Most modern web applications are being built with front-end MVC type frameworks which feed off a backend built in an MVC fashion which serve up API endpoints.
Front-End Stack
Backend Stack
API endpoint
Authentication
Security
DOM
Database
ajax
Firebase
Firebase takes over for needing to develop a full fledged backend and api out of the box. It also give you access to the data via web sockets and handles authentication and security.