Note: This is a feature branch of react-universally
. Please see the FEATURE_REDUX_OPINIONATED.md
for more information on this branch.
A starter kit giving you the minimum requirements for a modern universal React application.
This starter kit contains all the build tooling and configuration you need to kick off your next universal React project, whilst containing a minimal "project" set up allowing you to make your own architecture decisions (Redux/MobX etc).
- Invalid checksum errlr
- load some real data via Redux/API/Apollo and GraphQL
- other styles of charts - http://www.reactd3.org/components/
- try fusion charts http://www.fusioncharts.com/react-charts/#/demos/ex2
- try chart.js - https://reactcommunity.org/react-chartjs/index.html
- even more charts - https://react.rocks/tag/Chart
- other things to bring in from react-universally
- EON https://www.pubnub.com/developers/eon/
- three.js https://threejs.org/
- full D3.js https://d3js.org/
- self hosting via github pages
- self hosting via S3 and cloudfront
- via now https://zeit.co/now
- ๐
react
as the view. - ๐
react-router
v4 as the router. - ๐
express
server. - ๐ญ
jest
as the test framework. - ๐ Very basic CSS support - it's up to you to extend it with CSS Modules etc.
- โ๏ธ Code splitting - easily define code split points in your source using
code-split-component
. - ๐ Server Side Rendering.
- ๐ Progressive Web Application ready, with offline support, via a Service Worker.
- ๐ Long term browser caching of assets with automated cache invalidation.
- ๐ฆ All source is bundled using Webpack v2.
- ๐ Full ES2017+ support - use the exact same JS syntax across the entire project (src/tools/config). No more folder context switching! We also only use syntax that is stage-3 or later in the TC39 process.
- ๐ง Centralised application configuration with helpers to avoid boilerplate in your code.
- ๐ฅ Extreme live development - hot reloading of ALL changes to client/server source, with auto development server restarts when your application configuration changes. All this with a high level of error tolerance and verbose logging to the console.
- โ SEO friendly -
react-helmet
provides control of the page title/meta/styles/scripts from within your components. - ๐ค Optimised Webpack builds via HappyPack and an auto generated Vendor DLL for smooth development experiences.
- ๐ Tree-shaking, courtesy of Webpack.
- ๐ฎ Security on the
express
server usinghelmet
andhpp
. - ๐ Asset bundling support. e.g. images/fonts.
- ๐ Preconfigured to support development and optimised production builds.
- ๐ผ Airbnb's ESlint configuration.
- โค๏ธ Preconfigured to deploy to
now
with a single command.
Redux/MobX, data persistence, modern styling frameworks and all the other bells and whistles have been explicitly excluded from this starter kit. It's up to you to decide what technologies you would like to add to your own implementation based upon your own needs.
However, we now include a set of "feature branches", each implementing a technology on top of the clean master branch. This provides you with an example on how to integrate said technologies, or use the branches to merge in a configuration that meets your requirements. See the
Feature Branches
documentation for more.
git clone https://github.com/ctrlplusb/react-universally my-project
cd my-project
yarn
yarn run development
Or, if you aren't using yarn
:
git clone https://github.com/ctrlplusb/react-universally my-project
cd my-project
npm install
npm run development
Now go make some changes to the Home
component to see the tooling in action.