Update README.md

This commit is contained in:
Taylor Otwell
2021-12-01 15:37:40 -06:00
committed by GitHub
parent 6f6c6dfd89
commit 4c54c21aff

View File

@@ -6,13 +6,30 @@ This repository is an implementing of the [Laravel Breeze](https://laravel.com/d
#### Installation #### 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_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 npm run dev