
Reality is, NodeJS does not need ExpressJS to create an HTTP server, just as Apache does not need Laravel or Synfony, but does need PHP, Python or Perl. The difference is that, the framework NodeJS uses to manage and delegate server requests is actually part of the MERN stack… you’ve guessed it! It is Express JS, which leads us to our cross-match number two: ExpressJS is, to NodeJS in the MERN stack, what PHP (Laravel, Symfony) is to Apache in the LAMP stack. PHP has frameworks that allow it to simplify server creation and management (Laravel, Symfony), and so does NodeJS. Here is where our stacks’ cross-matching goes a bit off. Second, a server-side language is a good thing but, a server-side framework is even better. So cross-match number one: (N)odeJS is to the MERN stack what (P)HP and Apache are to the LAMP stack. That is why we call NodeJS the server-side JavaScript. But then came NodeJS, a runtime environment that allowed JavaScript to run on the server. You might ask yourself, what the heck is that supposed to mean?… Turns out that, until recent years, JavaScript could only run on the browser, meaning that it handled data only on the front-end of an application.

A LAMP stack application communicates with its server (Apache) using the P (PHP, Python or Perl), while a MERN stack application communicates with its server (NodeJS) using the N (NodeJS). And in order to do so, let’s think about how the app communicates internally across its stack elements.įirst, the most important difference between the stacks are the languages used on the server. N: NodeJS server, or just call it Server-side JavaScript.R: ReactJS, a JavaScript library for building User Interfaces (UI - Frontend).E: ExpressJS Web Application Framework for NodeJS.P: PHP programming language (Could be Python or Perl).M: MySQL Relational Database Management System.
#Lamp stack meaning windows#

Let’s start by breaking both stacks down: In this article, I will talk about how I used my understanding of the LAMP stack to move on to MERN stack, and caught up with the JavaScript-as-a-server-side-language trend. This is because I love Laravel but, like many others, I have seen myself inevitably adapting to more updated stacks like the MERN stack.
#Lamp stack meaning full#
Not so long ago, when I started my journey as a Full Stack Web Developer, the stack that appealed to me the most was initially the LAMP stack.
