Skip to content

Latest commit

 

History

History
68 lines (50 loc) · 936 Bytes

README.md

File metadata and controls

68 lines (50 loc) · 936 Bytes

Breeze Backend

Installation

composer require laravel/passport --with-all-dependencies

Setup

composer setup

Docker Setup

container-compose build
container exec breeze_app composer setup

Test

composer test

Exposing Server

sudo php artisan serve --host 192.168.1.4 --port 80
sudo php artisan serve --host 0.0.0.0  --port 80

PHP Server Setup

We will need to install apfd to handle form data in PUT and PATCH method.

pecl channel-update pecl.php.net
pecl install apfd

Add the following extension to the php.ini

extension=apfd.so

Vercel Setup

  • /(.*) forward to /
  • /api/(.*) forward to /api
{
    "routes": [
        {
            "src": "/(.*)",
            "dest": "/api/index.php"
        },
        {
            "src": "/api/(.*)",
            "dest": "/api/index.php"
        }
    ]
}