feature-ninja / react-starter-kit
Opinionated React starter kit based on the Official Laravel React starter kit
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:TypeScript
Type:project
Requires
- php: ^8.2
- feature-ninja/cva: ^0.3.0
- inertiajs/inertia-laravel: ^2.0
- laravel/framework: ^12.0
- laravel/tinker: ^2.10.1
- tightenco/ziggy: ^2.4
Requires (Dev)
- fakerphp/faker: ^1.23
- larastan/larastan: ^3.0
- laravel/pail: ^1.2.2
- laravel/pint: ^1.18
- laravel/sail: ^1.41
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.6
- phpunit/phpunit: ^11.5.3
This package is auto-updated.
Last update: 2025-03-23 15:26:48 UTC
README
This starter kit is based on the official Laravel React Starter Kit that has been restructured in an opinionated way. It consists of marketing section and control panel, each with their own asset bundle. It also ships with a fully configured PHPStan setup thanks to Larastan!
Asset bundling
In order to simplify handling multiple asset bundles you can use the php artisan bundle <npm script>
command. You can
use the --clean-install
flag to ensure the NPM dependencies are reinstalled, and limit which bundles to build by using
the --only=<bundle a,bundle b,bundle c>
option.
# Start Vite development server for both sections php artisan bundle dev # Build asset for production php artisan bundle build
Structure
Besides the multiple sections the code is also grouped by feature and placed next to each other. So instead of putting
all the controllers in a Controllers
directory and all the form requests in a Requests
directory they are now
grouped together. Additionally, all the tests have been placed inlined with their feature.