/***************************************/
React.js and Redux, Backend is a seed for Symfony4 API
Fork contains proof of concept based on several front end tutorials: judo-heroes2 itself,
https://github.com/sadams/todo-redux-react-webpack
https://github.com/gaearon/todos/tree/master/src
https://github.com/reactjs/redux/tree/master/examples/real-world
Look at branches to fetch code for each tutorial and change https://github.com to https://codesandbox.io/s/github see it in action in code sandbox
In my example React/redux files location is symlinked from public/bundles/tensorcore to
Renders page from preloaded JSON and then updates/sync state through API
Below is readme from tutorial used as main code source. Redux states and API handling were added on top of it
/***************************************/
Universal JavaScript sample application with React Router 4 and Express 5 (Enhanced version of https://github.com/lmammino/judo-heroes)
git clone [email protected]:lmammino/judo-heroes-2.git
cd judo-heroes-2
yarn # or `npm i` if not using yarn
Available commands to run with npm run
:
start
: build the production package and run the production server (no universal)start:universal
: build the production package and run the production server with universal renderingstart:dev
: build the dev package and run the server in dev mode (no universal rendering — auto-restarts on changes)start:dev:universal
: build the dev package and run the server in dev mode with universal rendering (auto-restarts on changes)build
: build the production packagebuild:dev
: build the dev packagebuild:dev:watch
: build the dev package in watch mode (listen for changes and re-build immediately)
If you want to know more about Universal JavaScript and improve your application even more (e.g. by adding Universal Data Retrival using REST APIs) I definitely recommend to read the chapter Universal JavaScript for Web Applications on my book Node.js Design Patterns Second Edition (Packt):
Everyone is very welcome to contribute to this project. You can contribute just by submitting bugs or suggesting improvements by opening an issue or by sending a pull request.
Licensed under MIT License. © Luciano Mammino.