This application serves as an example of applying vite in Laravel.
Clone the repo locally:
git clone https://github.com/gcavanunez/laravel-jetstream-inertia-vite-ts.git
cd laravel-jetstream-inertia-vite-tsInstall PHP dependencies:
composer installInstall NPM dependencies:
npm ciyarnBuild assets:
npm run devyarn devSetup configuration:
cp .env.example .envGenerate application key:
php artisan key:generateCreate an SQLite database. You can also use another database (MySQL, Postgres), simply update your configuration accordingly.
touch database/database.sqliteRun database migrations:
php artisan migrateRun database seeder:
php artisan db:seedRun the dev server (the output will give the address):
php artisan serve