react-universally
A starter kit for universal react applications.
Last updated 3 years ago by ctrlplusb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-universally 
SYNC missed versions from official npm registry.

React, Universally

A starter kit for universal react applications.

About

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).

Features

  • ???? react as the view.
  • ???? react-router v4 as the router.
  • ???? express server.
  • ???? jest as the test framework.
  • ???? Combines prettier and Airbnb's ESlint configuration - performing code formatting on commit. Stop worrying about code style consistency.
  • ???? 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 react-async-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. 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. Also has support for environment specific configuration files.
  • ???? 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 using helmet and hpp.
  • ???? Asset bundling support. e.g. images/fonts.
  • ???? Preconfigured to support development and optimised production builds.
  • ❤️ 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.

Getting started

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.

Docs

Current Tags

  • 13.0.0                                ...           latest (3 years ago)

37 Versions

  • 13.0.0                                ...           3 years ago
  • 12.0.0                                ...           4 years ago
  • 11.0.1                                ...           4 years ago
  • 11.0.0                                ...           4 years ago
  • 10.2.0                                ...           4 years ago
  • 10.1.0                                ...           4 years ago
  • 10.0.1                                ...           4 years ago
  • 10.0.0                                ...           4 years ago
  • 9.0.0                                ...           4 years ago
  • 8.4.0                                ...           4 years ago
  • 8.3.0                                ...           4 years ago
  • 8.2.0                                ...           4 years ago
  • 8.0.0                                ...           4 years ago
  • 7.2.0                                ...           4 years ago
  • 7.1.0                                ...           4 years ago
  • 7.0.2                                ...           4 years ago
  • 7.0.1                                ...           4 years ago
  • 7.0.0                                ...           4 years ago
  • 6.0.0                                ...           4 years ago
  • 5.1.0                                ...           4 years ago
  • 5.0.0                                ...           4 years ago
  • 4.1.0                                ...           4 years ago
  • 4.0.0                                ...           4 years ago
  • 3.3.1                                ...           4 years ago
  • 3.2.1                                ...           4 years ago
  • 3.2.0                                ...           4 years ago
  • 3.1.0                                ...           4 years ago
  • 3.0.0                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.2.2                                ...           4 years ago
  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.2                                ...           4 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 37
Dependencies (18)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |