The rubix/laravel/laravel-example app is a complete implementation of the following tutorial. If you find yourself getting stuck in any part of the tutorial please refer to the source code of the laravel-example app. For any other issues get in touch with us at firstname.lastname@example.org
Knowledge of Laravel framework and React framework is assumed and won't be covered in this tutorial. For a good tutorial on Laravel and React please refer to the Laravel official guide here: https://laravel.com/docs/5.1/homestead and React official guide here: https://facebook.github.io/react/docs/getting-started.html
The Application structure resembles a normal Laravel 5.1 LTS app structure with a few extra files/folders that are used for building React code. The new files/folders are marked with a [+] symbol next to it.
. ├── .babelrc [+] ├── .bowerrc [+] ├── .env ├── .env.example ├── .gitattributes ├── .gitignore ├── Homestead.yaml ├── Vagrantfile ├── after.sh [+] ├── app ├── artisan ├── bootstrap ├── bower.json [+] ├── composer.json ├── composer.lock ├── config ├── database ├── deploy.sh [+] ├── gulpfile.js ├── node_modules ├── package.json ├── phpspec.yml ├── phpunit.xml ├── public ├── readme.md ├── resources ├── sass ├── server.php ├── src [+] ├── storage ├── tests ├── tools [+] └── vendor
Here is a quick description of the extra files/folders included in the Laravel starter kit:
bower.jsonis a file that contains all packages managed by Bower.
after.shis a bash script file that is executed when you spawn your Virtual Machine by running
vagrant up. This script file installs react-php-v8js which is used by the Laravel backend to render your client code server-side.
deploy.shis a bash script used during deployment of the Laravel app to Forge.
srcfolder contains all the client-side Rubix source code and SASS files.
toolsfolder has config files required by Webpack development server to compile the source files defined in the