This is just to demonstrate that it's possible to use laravel to create the api for a react frontend. I would need to do a lot more reading to get that configurations right, but I assume you'd know a lot more about it than I do!
- npm
- php composer
cd backend
composer update
php artisan serve
cd frontend
npm install
npm run start
I tried to connect the laravel app to a mysql database, but didn't manage to do it.
(will need to set up docker and docker-compose)
cd Dashboard
docker-compose up --build
I can eventually run all this in one process, but I'll need a couple days to figure it out. I'd like to eventually dockerize all of this but I think we'll play it by ear.
At the moment, I have been able to pull one line of json from the api to the front-end. I could give you a code-walkthrough later. This is just a first-look!