High-level workflow in MERN apps

I started to learn full-stack development using the MERN stack and only then did I fully understand the constant data exchange between the user and the server. This short article highlights the workflow in a simple MERN app.
Suppose you have ever seen …


This content originally appeared on DEV Community and was authored by Opajobi Oyegoke

I started to learn full-stack development using the MERN stack and only then did I fully understand the constant data exchange between the user and the server. This short article highlights the workflow in a simple MERN app.
Suppose you have ever seen a tutorial video on APIs. In that case, I bet this common analogy that APIs act as waiters in a restaurant bridging the gap between customers and kitchen staff, would not be strange to you.
The React frontend can be likened to diners in a restaurant who interact with the waiters to send and receive food. Mongodb database, the pantry where food recipes and ingredients are stored while the Express backend serves as the kitchen where dishes are prepared. The kitchen pulls from the pantry to prepare dishes for the diners.
The API Endpoints, the waiters, are responsible for carrying requests to the kitchen and delivering responses back to the diners. Each waiter handles a specific task which could be any of a GET, POST, PUT, OR DELETE request.
This analogy has helped paint a brighter picture of how the web works. I look forward to sharing more as I go through this learning curve.


This content originally appeared on DEV Community and was authored by Opajobi Oyegoke


Print Share Comment Cite Upload Translate Updates
APA

Opajobi Oyegoke | Sciencx (2024-10-22T18:33:30+00:00) High-level workflow in MERN apps. Retrieved from https://www.scien.cx/2024/10/22/high-level-workflow-in-mern-apps/

MLA
" » High-level workflow in MERN apps." Opajobi Oyegoke | Sciencx - Tuesday October 22, 2024, https://www.scien.cx/2024/10/22/high-level-workflow-in-mern-apps/
HARVARD
Opajobi Oyegoke | Sciencx Tuesday October 22, 2024 » High-level workflow in MERN apps., viewed ,<https://www.scien.cx/2024/10/22/high-level-workflow-in-mern-apps/>
VANCOUVER
Opajobi Oyegoke | Sciencx - » High-level workflow in MERN apps. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/10/22/high-level-workflow-in-mern-apps/
CHICAGO
" » High-level workflow in MERN apps." Opajobi Oyegoke | Sciencx - Accessed . https://www.scien.cx/2024/10/22/high-level-workflow-in-mern-apps/
IEEE
" » High-level workflow in MERN apps." Opajobi Oyegoke | Sciencx [Online]. Available: https://www.scien.cx/2024/10/22/high-level-workflow-in-mern-apps/. [Accessed: ]
rf:citation
» High-level workflow in MERN apps | Opajobi Oyegoke | Sciencx | https://www.scien.cx/2024/10/22/high-level-workflow-in-mern-apps/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.