DEV Community

Discussion on: RoadMap to learn MERN Stack for Beginners

Collapse
 
lexiebkm profile image
Alexander B.K.

Now, one thing I am thinking is how to do the same approach Laravel has for web development. From Laravel official site/documentation, it is clear we can use Laravel for two different purposes :

  1. A full-stack, stand-alone development, in which React or Vue.js in the frontend is integrated part of the full-stack application. The React/Vue front-end then is considered 1st party app, instead of 3rd party. For this purpose, we write code for routing in the file named web.
  2. A backend app that provides APIs for 3rd party apps written with any supported tools, including React or Vue. For this purpose, we write code for routing in the file named api.

As for MERN stack, from what I have seen the 2nd approach mentioned previously is the most used one. I am trying to find the 1st approach like Laravel provides for this MERN (and also MEAN) stack : a full-stack, standalone application.
We can also agree the "M" in the stack can be MySQL instead of MongoDB, depending on what database we want to use.