This is a Symfony 4 starter repo with React, developed for https://www.modernjsforphpdevs.com/react-symfony-4-starter-repo/
- PHP 7.1.3 or higher
- Node.js 6.0.0 or higher
- and the usual Symfony application requirements.
Install the composer dependencies:
$ composer install
Then install the node dependencies:
$ yarn
# OR
$ npm install
Build the assets with Webpack Encore
$ yarn run encore dev
# yarn run encore dev --watch to automatically rebuild on every change
And start the built-in webserver
$ ./bin/console server:start
# stop it again with ./bin/console server:stop
Navigate to http://localhost:8000 to see the final result, which should look something like this: