Skip to content

A Nuxt3 front-end with authentication powered by a Laravel API.

Notifications You must be signed in to change notification settings

mrhorrocks/nuxt3-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

nuxt3-api

Introduction

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.

OS Requirements

Install Composer, Xampp & Node.js onto your OS.

Laravel API Installation

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/

Nuxt Installation

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.

Todo

  • Connect the FRONTEND_URL in .env correctly in sanctum.php

About

A Nuxt3 front-end with authentication powered by a Laravel API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published