E
E
Eugene2020-11-04 16:12:54
PHP
Eugene, 2020-11-04 16:12:54

How to properly separate the client and server parts?

Good evening, I have a question about choosing the structure of a web application.
The application will be a client on React and a server on Laravel, using the REST API, and also make a mobile application in the project.
What is the best way to organize the structure in this case?
Now 2 options come to mind

  1. Make 2 client and server folders and store everything in one repository
  2. Separate the client and server into different repositories, respectively, and deploy separately.

So far, I'm more inclined towards the second option, since in the future it is possible to deploy several servers with load distribution between them.

I would be glad to hear comments or suggestions on the issue. Thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dima Pautov, 2020-11-04
@SpaceJesus

2 repositories. There is no need for each side to carry an extra load.
When rolling out to a server, you can store it just in 2 folders, client and server.

M
mirexdoors, 2020-11-04
@mirexdoors

You can make a monolith, since logically you will still have one application

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question