Skip to content

zpwparsons/nuxt-jetstream

Repository files navigation

Nuxt 3 Jetstream Starter

Look at the Nuxt 3 documentation to learn more.

Client Setup

Install the dependencies:

bun install

Copy the example environment file:

cp .env .env.example

Development Server

Start the development server on http://localhost:3000:

bun run dev

Production

Build the application for production:

bun run build

Locally preview production build:

bun run preview

Laravel Setup

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,

];

Development Server

Start the development server on http://localhost:8000:

php artisan serve

Check out the deployment documentation for more information.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published