What type of architecture/design pattern does MERN follow?
Asked Answered
H

1

10

I am a part of a project that is using the MERN stack and need info on how to structure my system architecture diagram. I am unsure whether MERN is a MVC, layered, client-server, or other architecture pattern.

I currently have a diagram on our github wiki page, but my client said that this is not detailed enough. Can someone please chime in and help out.

I want to say MVC, but since React is the view, and all logic is within the Express controllers/models I am unsure whether this is truly a MVC pattern.

Helices answered 4/2, 2020 at 20:40 Comment(1)
To use React Js in the frontend along with backend (Node, Express, and MongoDB) then, it is known as MVC architecture as mongoose model definition as Model, controller defining as Controller and View (ReactJs is added here). The combination of programming stacks such as MongoDB, Express, ReactJS, and NodeJs is known as the MERN stack design pattern.Triecious
F
-1

I suggest you follow the clean architecture and SOLID Principle.

Filberte answered 27/4 at 4:27 Comment(1)
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.Abrupt

© 2022 - 2024 — McMap. All rights reserved.