R
R
Roman Ogarkov2016-09-24 23:49:02
JavaScript
Roman Ogarkov, 2016-09-24 23:49:02

How to properly create an application structure on ReactJS + Laravel 5.3?

Share your experience in creating application structures based on the Laravel framework and the ReactJS library

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nikita Gushchin, 2016-09-25
@ogarich89

On the backend: making rest-api with Laravel.
On the frontend: take react + redux and develop an application that will communicate with the back via the API.

S
salex772, 2016-09-26
@salex772

I don't touch the App folder. In the Resources folder I create a JS folder and store everything there. If you only have an admin panel or some part only on Redux / React, then you can do it in one project. But still, the trend is such that it is better to divide into two projects, as they said above REST on Laravel and the front separately, and then you need to think why Laravel at all if you can immediately use nodejs

A
Alex Staub, 2016-09-29
@alexboor

Similar to the above - resources contain all the js for the front-end application. Styles are there. Configs for gulp/webpack/babel/npm and other tools in the root of the project. Tests in resources along with the rest of the frontend code.
When building a project, everything is collected in public automatically.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question