thtg88 / bref-laravel-container-demo
A demo of a Bref project, which will contain a Laravel application in its src folder
Installs: 49
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:Shell
Type:project
Requires
- php: ^8.0
- bref/bref: ^1.0
- bref/laravel-bridge: ^1.0
README
This project is a container of an application that will run Bref on AWS Lambda. The target Laravel application will have to be copied in the src
folder.
Requirements
- PHP 8.0
- Composer
- Serverless (
npm i -g serverless
) - AWS CLI with a profile set up (
aws configure
). See this blog article on how to prepare your AWS environment for usage with this stack
Usage
composer create-project thtg88/bref-laravel-container-demo
Then either copy your application code within the src
folder, or git clone into it.
Deployment
This will create a CloudFormation stack using the configured AWS credentials in your own CLI profile (aws configure
for setting them up). See this blog article on how to prepare your AWS environment for usage with Serverless
./deploy.sh
Development
git clone git@github.com:thtg88/bref-laravel-container-demo.git composer install