Skip to content

zorfling/react-symfony-4-starter

Repository files navigation

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

About

React starter repo with Symfony 4 and Webpack Encore

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published