While building the MERN stack applications in this book, we followed a common folder structure across each application. We employed a modular approach by dividing and grouping the code based on relevance and common functionality. The idea behind creating these smaller and distinct sections in the code is to make sure each section addresses a separate concern, so individual sections can be reused, as well as developed and updated independently. In the following section, we will review this structure and its benefits.
Separation of concerns with modularity
Revisiting the application folder structure
In the application folder structure, we kept the client-side and server-side code separate with further subdivisions within these...