User:Amitvrm036/sandbox

From Wikipedia, the free encyclopedia
Common logo used to represent MERN stack

MERN stack is a software stack that includes four open-source technologies: (MongoDB, Express.js, React, and Node.js. These components provide an end-to-end framework for building dynamic web sites and web applications.

Among these technologies MongoDB is a database system, Node.js is a server-side runtime environment, Express.js is a web framework for Node.js and React is a client-side JavaScript library used for building user interfaces.

Because all components of the MERN stack support programs that are written in JavaScript, MERN applications can be written in one programming language for both server-side and client-side execution environments.

Software components[edit]

MongoDB[edit]

MongoDB is a NoSQL database program that uses JSON-like BSON (binary JSON) documents with schema[1].

The role of the database in the MERN 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[edit]

Express.js (also referred to as Express) is a modular web application framework for Node.js[2].

Whilst 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.

React[edit]

React (also known as React.js or ReactJS) is a JavaScript library[3] for building user interfaces. It is maintained by Facebook and a community of individual developers and companies.

React can be used as a base in the development of single-page or mobile applications. However, React is only concerned with rendering data to the DOM, and so creating React applications usually requires the use of additional libraries for state management and routing.Redux[4] and React Router[5] are respective examples of such libraries.

Node.js[edit]

Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside of a web browser. Node.js lets developers use JavaScript to write command line tools and for server-side scripting—running scripts server-side to produce dynamic web page content before the page is sent to the user's web browser. Consequently, Node.js represents a "JavaScript everywhere" paradigm[6].

See also[edit]

References[edit]

  1. ^ "MongoDB Download Center". MongoDB. Archived from the original on August 14, 2018. Retrieved August 14, 2018.
  2. ^ "Express.js home page".
  3. ^ "React - A JavaScript library for building user interfaces". React. Retrieved 7 April 2018.
  4. ^ "Redux · A Predictable State Container for JS Apps". redux.js.org. Retrieved 2019-10-23.
  5. ^ "React Router: Declarative Routing for React". ReactRouterWebsite. Retrieved 2019-10-23.
  6. ^ gcuomo (24 October 2013). "JavaScript Everywhere and the Three Amigos (Into the wild BLUE yonder!)". www.ibm.com.