ArticleslgStudy

computer science

MEAN (solution stack)

MEAN (solution stack) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand MEAN (solution stack) rather than just read about it. In short: MEAN (MongoDB, Express.js, AngularJS (or Angular), and Node.js) is a source-available JavaScript software stack for building dynamic web sites and web applications. A variation known as MERN replaces Angular with React.js front-end, and another named MEVN use Vue.js as front-end.

MEAN (solution stack) — main illustration
MEAN (solution stack) — illustration

Key takeaways

  • MEAN (solution stack) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect MEAN (solution stack) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of MEAN (solution stack) from memory before moving on to harder problems.

Reference excerpt

MEAN (MongoDB, Express.js, AngularJS (or Angular), and Node.js) is a source-available JavaScript software stack for building dynamic web sites and web applications. A variation known as MERN replaces Angular with React.js front-end, and another named MEVN use Vue.js as front-end. Because all components of the MEAN stack support programs that are written in JavaScript, MEAN applications can be written in one language for both server-side and client-side execution environments. Though often compared directly to other popular web development stacks such as the LAMP stack, the components of the MEAN stack are higher-level including a web application presentation layer and not including an operating system layer. The acronym MEAN was coined by Valeri Karpov. He introduced the term in a 2013 blog post and the logo concept, initially created by Austin Anderson for the original MEAN stack LinkedIn group, is an assembly of the first letter of each component of the MEAN acronym.

Software components

MongoDB

MongoDB is a NoSQL database program that uses JSON-like BSON (binary JSON) documents with optional schemas. The role of the database in the MEAN stack is very commonly filled by MongoDB because its use of JSON-like documents for interacting with data as opposed to the row/column model allows it to integrate well with the other (JavaScript-based) components of the stack.

Express.js

Express.js (also referred to as Express) is a modular web application framework package for Node.js. While Express is capable of acting as an internet-facing web server, even supporting SSL/TLS out of the box, it is often used in conjunction with a reverse proxy such as NGINX or Apache for performance reasons.

Angular and alternatives

Typically data is fetched using Ajax techniques and rendered in the browser on the client-side by a client-side application framework, however as the stack is commonly entirely JavaScript-based, in some implementations of the stack, server-side rendering where the rendering of the initial page can be offloaded to a server is used so that the initial data can be prefetched before it is loaded in the user's browser.

Node.js

Node.js is the application runtime that the MEAN stack runs on. The use of Node.js, which is said to represent a "JavaScript Everywhere" paradigm, is integral to the MEAN stack which relies on that concept.

See also LAMP (software bundle) LYME (software bundle) – a stack based on Erlang

References

Further reading Haviv, Amos Q. (2014). MEAN Web Development: Master real-time web application development using a mean combination of MongoDB, Express, Angular JS, and Node.js. Birmingham, UK: Packt Publishing. ISBN 978-1783983285. Holmes, Simon (2019). Getting MEAN with Mongo, Express, Angular, and Node, Second Edition. Shelter Island, NY: Manning Publishing. ISBN 9781617294754. Holmes, Simon (2015). Getting MEAN with Mongo, Express, AngularJs, and Node. Shelter Island, NY: Manning Publishing. ISBN 9781617292033. Dickey, Jeff (2014). Write Modern Web Apps with the MEAN Stack: Mongo, Express, AngularJS, and Node.js (Develop and Design). San Francisco, CA: Peachpit Press. ISBN 978-0133930153.

Illustrations

MEAN (solution stack): Common logo used to represent MEAN stacks.
Common logo used to represent MEAN stacks.
MEAN (solution stack): Common logo used to represent MERN stacks.
Common logo used to represent MERN stacks.

Worked examples

Example 1 — a first encounter with MEAN (solution stack)

Start with the simplest possible case. Write down what MEAN (solution stack) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to MEAN (solution stack) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about MEAN (solution stack) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of MEAN (solution stack)

In research
MEAN (solution stack) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses MEAN (solution stack) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
MEAN (solution stack) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Internet software for Linux, Web frameworks, so understanding it makes those chapters shorter.
In everyday life
Look for MEAN (solution stack) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “MEAN (solution stack)” →

How to study MEAN (solution stack) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what MEAN (solution stack) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain MEAN (solution stack) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is MEAN (solution stack) in simple terms?

MEAN (MongoDB, Express.js, AngularJS (or Angular), and Node.js) is a source-available JavaScript software stack for building dynamic web sites and web applications. A variation known as MERN replaces Angular with React.js front-end, and another named MEVN use Vue.js as front-end.

Why does MEAN (solution stack) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study MEAN (solution stack)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on MEAN (solution stack).

Tags

  • Internet software for Linux
  • Web frameworks

Keep exploring