A working setup with the latest versions of Laravel, ViteJS and ReactJS plus SASS and TailwindCSS run via a blade file. It was at first just for me so I can always clone and start off right away with new projects. It is an empty project so the only thing I did is a working tiny boilerplate with an example component.
- Clone this repo
- Open command tool and install dependencies in the root folder
composer install
andnpm install
- Setup your database in the
.env
file, for example like:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=mydb
DB_USERNAME=root
DB_PASSWORD=pass123
- Do the boilerplate migration
php artisan migrate
- Run Laravel dev server
php artisan serve
- Run React dev server
npm run dev
- Have fun
\o/
I might as well consider updating it with additional stuff once in a while.