Universal Javascript sample application with React Router 4 and Express 5 (Enhanced version of https://github.com/lmammino/judo-heroes)
git clone git@github.com: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.