This project compliments the tutorial written at https://joeczubiak.com/laravel-plus-react.
Please read the article for a fuller understanding of this sample project.
This project uses the following versions
Laravel 8.0
React 16.13.1
laravel-mix 5.0.1
- Download or clone this repo.
- In terminal, cd into the project directory.
- Create a .env file by copying the .env.example file.
cp .env.example .env
- Install composer dependencies.
composer install
- Generate an app key
php artisan key:generate
- Serve
php artisan serve
Now the project will be running on your localhost. http://localhost:8000
In order for changes to the React files to be reflected in your browser you need to do the following.
- Install npm dependencies.
npm install
- Run webpack
npm run dev
- Refresh browser
Licensed under the MIT license.