A ready-to-use boilerplate for building modern web applications using Laravel, Inertia.js, React, and TypeScript.
This starter comes pre-configured with:
- ✅ Inertia.js for SPA-like experience
- ⚛️ React with TypeScript for scalable frontend
- 🌐 i18n translation support using
react-i18next
- 🌙 Dark mode toggle (persisted theme)
- 🧱 Clean folder structure and code organization
- Laravel backend with Inertia for seamless routing
- React + TypeScript frontend
- Multi-language support (
react-i18next
) - Persistent dark/light theme toggle
- Vite for blazing fast development
- Tailwind CSS for modern UI styling
- Environment-based configurations
- Clone the repo:
git clone https://github.com/your-username/your-repo-name.git
cd your-repo-name
- Install PHP dependencies:
composer install
- Install JS dependencies:
npm install
- Set up environment:
cp .env.example .env
php artisan key:generate
- Run migrations (optional):
php artisan migrate
- Start development servers:
npm run dev
php artisan serve
- Language files are located in
resources/lang
- Dark mode toggle is handled in
use-appearance.ts
(you can modify to uselocalStorage
orsystem preference
) - Add more pages in
resources/js/Pages
and register them in Laravel routes
npm run dev # Start development server
npm run build # Compile for production
npm run lint # Lint TypeScript/JS code (optional)
resources/
├── js/
│ ├── Pages/
│ ├── Components/
│ ├── hooks/
│ ├── lib/
│ ├── App.tsx
│ └── main.tsx
├── views/
│ └── app.blade.php
Feel free to fork this project and enhance it! PRs are welcome.