/php-react-lambda-example

Example of rendering a React component in PHP through a Lamda function.

Primary LanguageJavaScriptISC LicenseISC

PHP React Lambda Example

Example of rendering a React component in PHP through a Lambda function.

Quick Installation

You can install the example through Composer and NPM:

$ git checkout https://github.com/webstronauts/php-react-lambda-example.git
$ cd php-react-lambda-example
$ composer install
$ npm install

Then package and deploy the React code to AWS Lambda:

$ npm run deploy

Now run the PHP application with the following command:

$ composer run

The above installation steps all assume that you have setup an AWS credentials file in your HOME directory.

License

The MIT License (MIT). Please see LICENSE for more information.