Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ctrlplusb/react-universally

A starter kit for universal react applications.
https://github.com/ctrlplusb/react-universally

boilerplate progressive-web-app react server-side-rendering starter-kit

Last synced: about 2 months ago
JSON representation

A starter kit for universal react applications.

Awesome Lists containing this project

README

        


React, Universally



A starter kit for universal react applications.

[![All Contributors](https://img.shields.io/badge/all_contributors-20-orange.svg?style=flat-square)](#contributors)

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

> NOTICE: Please read this important [issue](https://github.com/ctrlplusb/react-universally/issues/409) about the behaviour of this project when using `react-async-component`, which is by default bundled with it.

## 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 v3.
- ๐Ÿš€ 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`](/internal/docs/FEATURE_BRANCHES.md) documentation for more.

## Getting started

```bash
git clone https://github.com/ctrlplusb/react-universally my-project
cd my-project
npm install
npm run develop
```

Now go make some changes to the `Home` component to see the tooling in action.

## Docs

- [Project Overview](/internal/docs/PROJECT_OVERVIEW.md)
- [Project Configuration](/internal/docs/PROJECT_CONFIG.md)
- [Package Script Commands](/internal/docs/PKG_SCRIPTS.md)
- [FAQ](/internal/docs/FAQ.md)
- [Feature Branches](/internal/docs/FEATURE_BRANCHES.md)
- [Deploy your very own Server Side Rendering React App in 5 easy steps](/internal/docs/DEPLOY_TO_NOW.md)
- [Changelog](/CHANGELOG.md)

## Who's using it and where?

You can see who is using it and how in [the comments here](https://github.com/ctrlplusb/react-universally/issues/437). Feel free to add to that telling us how you are using it, we'd love to hear from you.

## Contributors

Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):

| [
Andrรฉs Calabrese](https://github.com/aoc)
[๐Ÿ’ป](https://github.com/ctrlplusb/react-universally/commits?author=aoc) | [
Andrey Luiz](https://andreyluiz.github.io/)
[๐Ÿ’ป](https://github.com/ctrlplusb/react-universally/commits?author=andreyluiz) | [
Alin Porumb](https://github.com/alinporumb)
[๐Ÿ’ป](https://github.com/ctrlplusb/react-universally/commits?author=alinporumb) | [
Benjamin Kniffler](https://github.com/bkniffler)
[๐Ÿ’ป](https://github.com/ctrlplusb/react-universally/commits?author=bkniffler) | [
Birkir Rafn Guรฐjรณnsson](https://medium.com/@birkir.gudjonsson)
๐Ÿ’ฌ [๐Ÿ›](https://github.com/ctrlplusb/react-universally/issues?q=author%3Abirkir) [๐Ÿ’ป](https://github.com/ctrlplusb/react-universally/commits?author=birkir) ๐Ÿ‘€ | [
Carson Perrotti](http://carsonperrotti.com)
๐Ÿ’ฌ [๐Ÿ’ป](https://github.com/ctrlplusb/react-universally/commits?author=carsonperrotti) [๐Ÿ“–](https://github.com/ctrlplusb/react-universally/commits?author=carsonperrotti) ๐Ÿ‘€ | [
Christian Glombek](https://github.com/LorbusChris)
[๐Ÿ›](https://github.com/ctrlplusb/react-universally/issues?q=author%3ALorbusChris) [๐Ÿ’ป](https://github.com/ctrlplusb/react-universally/commits?author=LorbusChris) |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| [
Christoph Werner](https://twitter.com/code_punkt)
๐Ÿ’ฌ [๐Ÿ›](https://github.com/ctrlplusb/react-universally/issues?q=author%3Acodepunkt) [๐Ÿ’ป](https://github.com/ctrlplusb/react-universally/commits?author=codepunkt) ๐Ÿ‘€ | [
David Edmondson](https://github.com/threehams)
[๐Ÿ’ป](https://github.com/ctrlplusb/react-universally/commits?author=threehams) | [
Dion Dirza](https://github.com/diondirza)
๐Ÿ’ฌ [๐Ÿ›](https://github.com/ctrlplusb/react-universally/issues?q=author%3Adiondirza) [๐Ÿ’ป](https://github.com/ctrlplusb/react-universally/commits?author=diondirza) [๐Ÿ“–](https://github.com/ctrlplusb/react-universally/commits?author=diondirza) ๐Ÿ‘€ | [
Evgeny Boxer](https://github.com/evgenyboxer)
[๐Ÿ›](https://github.com/ctrlplusb/react-universally/issues?q=author%3Aevgenyboxer) [๐Ÿ’ป](https://github.com/ctrlplusb/react-universally/commits?author=evgenyboxer) | [
Joe Kohlmann](http://kohlmannj.com)
[๐Ÿ›](https://github.com/ctrlplusb/react-universally/issues?q=author%3Akohlmannj) [๐Ÿ’ป](https://github.com/ctrlplusb/react-universally/commits?author=kohlmannj) | [
Lucian Lature](https://www.linkedin.com/in/lucianlature/)
[๐Ÿ›](https://github.com/ctrlplusb/react-universally/issues?q=author%3Alucianlature) [๐Ÿ’ป](https://github.com/ctrlplusb/react-universally/commits?author=lucianlature) ๐Ÿ‘€ | [
Mark Shlick](https://github.com/markshlick)
[๐Ÿ’ป](https://github.com/ctrlplusb/react-universally/commits?author=markshlick) |
| [
Ryan Lindskog](https://www.RyanLindskog.com/)
[๐Ÿ’ป](https://github.com/ctrlplusb/react-universally/commits?author=rlindskog) | [
Steven Enten](http://enten.fr)
๐Ÿ’ฌ [๐Ÿ›](https://github.com/ctrlplusb/react-universally/issues?q=author%3Aenten) [๐Ÿ’ป](https://github.com/ctrlplusb/react-universally/commits?author=enten) ๐Ÿ‘€ | [
Sean Matheson](http://www.ctrlplusb.com)
๐Ÿ’ฌ [๐Ÿ›](https://github.com/ctrlplusb/react-universally/issues?q=author%3Actrlplusb) [๐Ÿ’ป](https://github.com/ctrlplusb/react-universally/commits?author=ctrlplusb) [๐Ÿ“–](https://github.com/ctrlplusb/react-universally/commits?author=ctrlplusb) ๐Ÿ’ก ๐Ÿ‘€ [โš ๏ธ](https://github.com/ctrlplusb/react-universally/commits?author=ctrlplusb) ๐Ÿ”ง | [
Steven Truesdell](https://steventruesdell.com)
๐Ÿ’ฌ [๐Ÿ›](https://github.com/ctrlplusb/react-universally/issues?q=author%3Astrues) [๐Ÿ’ป](https://github.com/ctrlplusb/react-universally/commits?author=strues) [๐Ÿ“–](https://github.com/ctrlplusb/react-universally/commits?author=strues) [โš ๏ธ](https://github.com/ctrlplusb/react-universally/commits?author=strues) | [
Thomas Leitgeb](https://twitter.com/_datoml)
[๐Ÿ›](https://github.com/ctrlplusb/react-universally/issues?q=author%3Adatoml) [๐Ÿ’ป](https://github.com/ctrlplusb/react-universally/commits?author=datoml) | [
Tyler Nieman](http://tsnieman.net/)
[๐Ÿ’ป](https://github.com/ctrlplusb/react-universally/commits?author=tsnieman) |

This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!