mirror of
https://github.com/kevin-DL/breeze-next-template.git
synced 2026-01-11 10:24:29 +00:00
Update README.md
This commit is contained in:
21
README.md
21
README.md
@@ -6,13 +6,30 @@ This repository is an implementing of the [Laravel Breeze](https://laravel.com/d
|
||||
|
||||
#### Installation
|
||||
|
||||
To get started, clone this repository and install its dependencies with `yarn install` or `npm install`. Then, copy the `.env.example` file to `.env.local` and supply the URL of your backend:
|
||||
First, create a Next.js compatible Laravel backend by installing Laravel Breeze into a [fresh Laravel application](https://laravel.com/docs/installation) and installing Breeze's API scaffolding:
|
||||
|
||||
```bash
|
||||
# Create the Laravel application...
|
||||
laravel new next-backend
|
||||
|
||||
cd next-backend
|
||||
|
||||
# Install Breeze and dependencies...
|
||||
composer require laravel/breeze
|
||||
|
||||
php artisan breeze:install api
|
||||
|
||||
# Serve the application...
|
||||
php artisan serve
|
||||
```
|
||||
|
||||
Next, clone this repository and install its dependencies with `yarn install` or `npm install`. Then, copy the `.env.example` file to `.env.local` and supply the URL of your backend:
|
||||
|
||||
```
|
||||
NEXT_PUBLIC_BACKEND_URL=http://localhost:8000
|
||||
```
|
||||
|
||||
Next, run the application via `npm run dev`. The application will be available at `http://localhost:3000`:
|
||||
Finally, run the application via `npm run dev`. The application will be available at `http://localhost:3000`:
|
||||
|
||||
```
|
||||
npm run dev
|
||||
|
||||
Reference in New Issue
Block a user