Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
bin
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Releases

No releases published

Packages

No packages published