This repository is an implementation of the Laravel Breeze application / authentication starter kit frontend in Nuxt3. The authentication boilerplate is already written for you - powered by Laravel Sanctum, allowing you to quickly begin pairing a Nuxt.js frontend with a powerful Laravel backend.
Install Composer, Xampp & Node.js onto your OS.
Start Mysql and create a new database.
Clone the repo locally:
git clone https://github.com/mrhorrocks/nuxt3-api.git
Change the terminal location to nuxt3-backend.
cd nuxt3-backend
Copy .env.example to .env:
cp .env.example .env
Generate application key:
php artisan key:generate
Open .env add the name of your database to DB_DATABASE=>database-name-here
Run database migrations
php artisan migrate
The api is now running on http://localhost:8000/
Open another terminal in nuxt3-frontend and run
npm install && npm run dev
The nuxt app is now running on http://localhost:3000/
You can now navigate to http://localhost:3000/ and register a new account.
- Connect the FRONTEND_URL in .env correctly in sanctum.php