mitantsoa / laravel-react-starter-kit
The skeleton application for the Laravel framework.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:TypeScript
Type:project
pkg:composer/mitantsoa/laravel-react-starter-kit
Requires
- php: ^8.2
- inertiajs/inertia-laravel: ^2.0
- laravel/fortify: ^1.30
- laravel/framework: ^12.0
- laravel/tinker: ^2.10.1
- laravel/wayfinder: ^0.1.9
- spatie/laravel-permission: ^6.21
Requires (Dev)
- fakerphp/faker: ^1.23
- 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
README
A modern starter kit combining Laravel 12 with React, TypeScript, and several powerful tools for rapid application development.
Features
Authentication & Authorization
- Full authentication system using Laravel Breeze
- Role-based access control (ROLE_ADMIN, etc.)
- Protected routes with middleware
- User management (CRUD operations)
Frontend
- React 18 with TypeScript
- Inertia.js for seamless SPA-like experience
- Tailwind CSS for styling
- Shadcn/ui components library
- React Hook Form with Zod validation
- Lucide React for icons
- Responsive layout with mobile support
- Toast notifications
- SweetAlert2 for confirmations
Backend
- Laravel 12 framework
- MySQL database
- RESTful API architecture
- Form request validation
- Eloquent ORM with relationships
- Database migrations and seeders
Developer Experience
- TypeScript for better type safety
- Hot module replacement
- ESLint & Prettier configuration
- Organized folder structure
Project Structure
laravel-react-starter-kit/
├── app/
│ ├── Http/
│ │ ├── Controllers/
│ │ └── Middleware/
│ └── Models/
├── resources/
│ └── js/
│ ├── components/
│ │ └── ui/
│ ├── layouts/
│ ├── lib/
│ ├── pages/
│ └── types/
└── routes/
Getting Started
- Clone the repository:
git clone https://github.com/yourusername/laravel-react-starter-kit.git
- Install PHP dependencies:
composer install
- Install Node dependencies:
npm install
- Configure environment:
cp .env.example .env php artisan key:generate
- Set up database:
php artisan migrate --seed
- Start development servers:
php artisan serve npm run dev
Available Scripts
npm run dev
: Start development servernpm run build
: Build for productionphp artisan test
: Run testsphp artisan migrate:fresh --seed
: Reset database with fresh data
Key Components
DataTable
- Sortable columns
- Custom cell rendering
- Responsive design
- Action buttons with permissions
Form Components
- Form validation with Zod
- Error handling
- Backend validation integration
- File upload support
Authentication
- Login/Register pages
- Password reset
- Remember me functionality
- Session management
User Management
- User listing with roles
- Create/Edit/Delete users
- Role assignment
- Permission checks
Contributing
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
License
This project is open-sourced software licensed under the MIT license.
Requirements
- PHP 8.2+
- Node.js 16+
- MySQL 8.0+
- Composer
- npm
This starter kit provides a solid foundation for building modern web applications with Laravel and React. Feel free to customize it according to your needs!