Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.13 KB

README.md

File metadata and controls

52 lines (34 loc) · 1.13 KB

React starter repo with Symfony 4 and Webpack Encore

This is a Symfony 4 starter repo with React, developed for https://www.modernjsforphpdevs.com/react-symfony-4-starter-repo/

Requirements

Installation

Install the composer dependencies:

$ composer install

Then install the node dependencies:

$ yarn

# OR

$ npm install

Usage

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:

The final result is three Material Design cards with an author, title and content