Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

KnpLabs/symfony-twig-react-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

symfony-twig-react-example

A proof of concept using a Twig powered Symfony app and a React SPA.

This repository is linked to our article about How to add a front-end framework to an existing Symfony monolith.

Run in dev env

docker-compose up -d

Open up http://blog.app.localhost and you should see the app.

Run in prod env

docker-compose -f docker-compose.prod.yml up -d

By default the app is served on http://blog.app.localhost. To match your needs you can change this with :

sed -i s/blog\.app\.localhost/your-url/g docker-compose.prod.yaml

You'll also have to modify Traefik configuration to be production proof (protect or remove access to its dashboard and api).

About

A proof of concept using a Twig powered Symfony app and a React SPA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published