channlabs/starter-kit
最新稳定版本:v1.0.2
Composer 安装命令:
composer create-project channlabs/starter-kit
包简介
Laravel Inertia React Starter Kit by Chann Labs.
关键字:
README 文档
README
⚡ Chann Labs Starter Kit
Premium Laravel + React Starter Kit for Modern Web Applications
Build SaaS applications 10x faster with production-ready architecture
Features • Quick Start • Documentation • Tech Stack
🎯 Overview
Chann Labs Starter Kit is a production-ready Laravel + React boilerplate designed for developers who want to ship faster without compromising on code quality. Built with modern best practices, it includes everything you need to launch your next SaaS product.
✨ What Makes It Special
- 🚀 Zero Configuration - Get started in minutes with automated setup
- 🎨 Premium UI - 50+ Shadcn UI components with dark mode support
- 🔐 Authentication Ready - Complete auth system with Laravel Fortify
- 👥 Multi-Tenancy - Built-in team management and organization support
- 📦 Type-Safe - Full TypeScript integration with Laravel Wayfinder
- ⚡ Lightning Fast - Optimized with Vite and SSR support
- 🎭 Modern Stack - Laravel 12, React 19, Inertia.js, Tailwind CSS v4
🚀 Features
🔐 Authentication & Authorization
- Login, Register, Email Verification
- Password Reset & Two-Factor Authentication (2FA) ready
- Role-based access control
- Session management
👥 Team Management
- Multi-tenant architecture
- Team creation and management
- Member invitations
- Role and permission system
🎨 UI Components
- 50+ pre-built Shadcn UI components
- Dark mode support with system preference detection
- Responsive design for all screen sizes
- Hugeicons integration (3000+ icons)
- Custom animations and transitions
🛠️ Developer Experience
- TypeScript configuration
- ESLint & Prettier setup
- Laravel Pint for PHP formatting
- Hot Module Replacement (HMR)
- SSR support with Inertia.js
- Type-safe routing with Laravel Wayfinder
📊 Additional Features
- Database migrations and seeders
- API routes and controllers
- Queue system ready
- Email notifications
- File upload handling
- Form validation
📦 Tech Stack
Backend
- Laravel 12 - PHP Framework
- Laravel Fortify - Authentication
- Inertia.js - Modern Monolith
- Laravel Wayfinder - Type-safe Routing
Frontend
- React 19 - UI Library
- TypeScript - Type Safety
- Tailwind CSS v4 - Styling
- Shadcn UI - Component Library
- Radix UI - Headless Components
- Hugeicons - Icon Library
Build Tools
- Vite - Build Tool
- ESLint - Linting
- Prettier - Code Formatting
- Laravel Pint - PHP Formatting
🏁 Quick Start
Prerequisites
- PHP 8.2 or higher
- Composer
- Node.js 18 or higher
- MySQL/PostgreSQL/SQLite
Installation
- Clone the repository
git clone https://github.com/channlabs/channlabs-starter-kit.git
cd channlabs-starter-kit
- Run automated setup
composer setup
This will:
- Install PHP dependencies
- Copy
.env.exampleto.env - Generate application key
- Run database migrations
- Install Node.js dependencies
- Build frontend assets
- Start development server
composer dev
This runs:
- Laravel development server (http://localhost:8000)
- Queue worker
- Vite dev server with HMR
Alternative: Manual Setup
# Install dependencies composer install npm install # Environment setup cp .env.example .env php artisan key:generate # Database setup php artisan migrate # Build assets npm run build # Start server php artisan serve
🎨 Development
Available Commands
Composer Scripts
composer setup # Complete project setup composer dev # Start development servers composer dev:ssr # Start with SSR support composer lint # Format PHP code composer test # Run tests
NPM Scripts
npm run dev # Start Vite dev server npm run build # Build for production npm run build:ssr # Build with SSR npm run lint # Lint and fix JS/TS npm run format # Format code with Prettier npm run types # Check TypeScript types
Project Structure
channlabs-starter-kit/
├── app/ # Laravel application
│ ├── Console/ # Artisan commands
│ ├── Http/ # Controllers, Middleware
│ └── Models/ # Eloquent models
├── database/ # Migrations, Seeders
├── resources/
│ ├── js/ # React application
│ │ ├── components/ # Reusable components
│ │ ├── layouts/ # Page layouts
│ │ ├── pages/ # Inertia pages
│ │ └── lib/ # Utilities
│ └── views/ # Blade templates
├── routes/ # Route definitions
│ ├── web.php # Web routes
│ └── api.php # API routes
└── tests/ # Test files
📚 Documentation
Key Concepts
Routing
Routes are defined in routes/web.php and automatically generate TypeScript types via Laravel Wayfinder:
Route::get('/dashboard', function () { return Inertia::render('dashboard'); })->name('dashboard');
import { dashboard } from '@/routes'; <Link href={dashboard()}>Dashboard</Link>;
Components
All UI components are located in resources/js/components/ui/ and follow Shadcn UI patterns:
import { Button } from '@/components/ui/button'; <Button variant="outline">Click me</Button>;
Layouts
Page layouts are in resources/js/layouts/:
app-layout.tsx- Authenticated app layoutauth-layout.tsx- Authentication pages layout
🎨 Customization
Theming
Colors and design tokens are configured in tailwind.config.js. The starter kit uses CSS variables for theming:
@theme { --color-primary: oklch(0.6 0.2 250); --color-background: oklch(1 0 0); }
Adding Components
Use Shadcn CLI to add new components:
npx shadcn@latest add [component-name]
🧪 Testing
# Run all tests composer test # Run PHP tests only php artisan test # Run with coverage php artisan test --coverage
🚀 Deployment
Build for Production
npm run build composer install --optimize-autoloader --no-dev php artisan config:cache php artisan route:cache php artisan view:cache
Environment Variables
Key environment variables to configure:
APP_NAME="Your App Name" APP_ENV=production APP_DEBUG=false APP_URL=https://yourdomain.com DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_DATABASE=your_database DB_USERNAME=your_username DB_PASSWORD=your_password
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- Laravel - The PHP Framework
- React - The UI Library
- Inertia.js - The Modern Monolith
- Shadcn UI - Beautiful Components
- Tailwind CSS - Utility-first CSS
💬 Support
- 📧 Email: support@chann.id
- 🌐 Website: chann.id
- 📖 Documentation: [Coming Soon]
- 🐛 Issues: GitHub Issues
Built with ❤️ by Chann Labs
⭐ Star us on GitHub — it motivates us a lot!
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-19