From LAMP to MEAN
Let’s break down the alphabet soup and talk about some highlights for each of these components.
Express allows you to control and routing / page generation on the server side, but now – thanks to AngularJS – emphasis on the presentation to the client. This change is not simply the transfer of your artifacts (Model-View-Controller (MVC)) from the server to the client device. It also provides primary benefits via these scripts to a simplified back-end architecture. For example, Express.js weighs in at only 1,143 lines of code – and a purely client-side presentation layer in AngularJS that can be easily embedded into any existing web application. And, perhaps most important – is the movement from page-based applications to the component-oriented applications.
Node.js replaces the Apache component of the LAMP stack and acts as a platform independent web server that is completely portable and highly configurable. But Node.js is much more than just a web server. In fact, a complete application is not deployed on a separate web server. Instead, the web server is included in the application and is automatically installed as part of the MEAN stack. As a result, the deployment process is greatly simplified, since the required version of web server is clearly defined, along with the rest of the run-time dependencies. But the main shift between the LAMP and MEAN is to move from traditional generation of pages on the server side to a focus on one-page application (SPA) execution on the client side.
Now that we have talked about what the components are, another key feature and value of the MEAN Stack is that it’s not “locked up” for mobile applications – this stack works equally well on desktops and laptops, smartphones and tablets, and even smart TVs. Importantly, this “works everywhere” approach is fundamental because the MEAN stack does not refer to new devices as second-class citizens. And testing is no longer an afterthought: using world-class test platforms such as MochaJS, JasmineJS and KarmaJS, you can write thorough and comprehensive test suites for its MEAN-applications.
So are you ready to master MEAN?
For more information and another take on the MEAN stack, check out