How To Structure a MERN Application

Hi Everyone,

I come from a C# background where we generally have a solution with different projects in it where you can build and deploy different parts of the application (namely the front and and WebAPI) to different servers.

I was just wondering what kind of structure people use and recommend for building MERN apps.

Do you have it all in one repository with a front-end folder (for React) and a backend folder (for Express, Node and MongoDB/Mongoose code)?

Or, would you create the front-end in one repo and the back-end in another?

Discuss.

Thank you.

Kevin Parkinson

I just found this thread on Stackoverflow. What does everyone think about the solution in the approved answer?