Look at the Nuxt 3 documentation to learn more.
Install the dependencies:
bun install
Copy the example environment file:
cp .env .env.example
Start the development server on http://localhost:3000
:
bun run dev
Build the application for production:
bun run build
Locally preview production build:
bun run preview
Install laravel and dependencies:
laravel new jetstream
cd jetstream
php artisan jetstream:install inertia --teams
npm install
npm run build
php artisan migrate
Add the front-end url to the environment file:
FRONTEND_URL=http://localhost:3000
Update the cors.php
configuration file:
return [
'paths' => ['*'],
'allowed_methods' => ['*'],
'allowed_origins' => [env('FRONTEND_URL', 'http://localhost:3000')],
'allowed_origins_patterns' => [],
'allowed_headers' => ['*'],
'exposed_headers' => [],
'max_age' => 0,
'supports_credentials' => true,
];
Start the development server on http://localhost:8000
:
php artisan serve
Check out the deployment documentation for more information.