Laravel application with react. Example taken from pushers's post.
- Clone the repo using:
git clone https://github.com/GuilhermeFavere/react-laravel-application.git
. - Move to the appropriate directory:
react-laravel-application
. - Install the dependencies with
composer install
, andnpm install
. - Run
npm run dev
to generate the assets. - Copy the
.env.example
to.env
, and fill the values of your environment (this project was deployed on Heroku, so if you want to use a different database host than the: "Heroku postgres", you must update the file: "config/database.php" with your database config). - Finally run
php artisan key:generate
to generate the app key.
Now the app is ready for use, you can open it running: php artisan serve
in the root of the project directory. You also can check it here.