/laravel-inertia-react-tailwind-starter

A boilerplate for a Laravel, Inertia, React and Tailwindcss application.

Primary LanguagePHP

Laravel-inertia-react-tailwind-starter

This is a simple boilerplate for a Laravel, Inertia, React and Tailwind application.

Includes PurgeCSS enabled out of the box for production builds as well as versioning. See complete Laravel Mix config.

Also includes the setup of CSRF token validation for Inertia/Axios.

Setup (development)

  1. Run composer install and npm install.
  2. Rename .env.example to .env.
  3. Run php artisan key:generate.
  4. Run php artisan serve and npm run hot to launch the application with hot module replacement enabled.

Prepare assets for production

  1. Run npm run build production
  2. VoilĂ , that's it!