All Projects → strues → React Universal Boiler

strues / React Universal Boiler

Licence: mit
A bold way to begin your next great universal React application. Uses Webpack 3, React 16, Redux, and more for a great developer experience.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Universal Boiler

Mern
🎉 This is boilerplate for MERN stack with integrations like Redux and SSR 🎉
Stars: ✭ 77 (+18.46%)
Mutual labels:  webpack, boilerplate, ssr, server-side-rendering
React Core Boilerplate
Powerful ASP.NET Core 3 templates with React, true server-side rendering and Docker support
Stars: ✭ 169 (+160%)
Mutual labels:  webpack, boilerplate, ssr, server-side-rendering
React App
Create React App with server-side code support
Stars: ✭ 614 (+844.62%)
Mutual labels:  webpack, boilerplate, ssr, server-side-rendering
Razzle Material Ui Styled Example
Razzle Material-UI example with Styled Components using Express with compression
Stars: ✭ 117 (+80%)
Mutual labels:  webpack, boilerplate, ssr, server-side-rendering
Ssr Sample
A minimum sample of Server-Side-Rendering, Single-Page-Application and Progressive Web App
Stars: ✭ 285 (+338.46%)
Mutual labels:  webpack, ssr, server-side-rendering
Rockpack
Rockpack is a simple solution for creating React Application with Server Side Rendering, bundling, linting, testing within 5 minutes
Stars: ✭ 265 (+307.69%)
Mutual labels:  webpack, boilerplate, ssr
After.js
Next.js-like framework for server-rendered React apps built with React Router
Stars: ✭ 4,051 (+6132.31%)
Mutual labels:  webpack, ssr, server-side-rendering
React Firebase Starter
Boilerplate (seed) project for creating web apps with React.js, GraphQL.js and Relay
Stars: ✭ 4,366 (+6616.92%)
Mutual labels:  boilerplate, ssr, server-side-rendering
Js Stack Boilerplate
Final boilerplate code of the JavaScript Stack from Scratch tutorial –
Stars: ✭ 145 (+123.08%)
Mutual labels:  webpack, boilerplate, server-side-rendering
React Router Server
Server Side Rendering library for React Router v4.
Stars: ✭ 443 (+581.54%)
Mutual labels:  webpack, ssr, server-side-rendering
Universal Starter
Angular 9 Universal repo with many features
Stars: ✭ 518 (+696.92%)
Mutual labels:  webpack, ssr, server-side-rendering
Crate
👕 👖 📦 A sample web and mobile application built with Node, Express, React, React Native, Redux and GraphQL. Very basic replica of stitchfix.com / krate.in (allows users to get monthly subscription of trendy clothes and accessories).
Stars: ✭ 2,281 (+3409.23%)
Mutual labels:  webpack, ssr, server-side-rendering
Loadable Components
The recommended Code Splitting library for React ✂️✨
Stars: ✭ 6,194 (+9429.23%)
Mutual labels:  webpack, ssr, server-side-rendering
React Cool Starter
😎 🐣 A starter boilerplate for a universal web app with the best development experience and a focus on performance and best practices.
Stars: ✭ 1,083 (+1566.15%)
Mutual labels:  webpack, boilerplate, server-side-rendering
React Loadable
⏳ A higher order component for loading components with promises.
Stars: ✭ 16,238 (+24881.54%)
Mutual labels:  webpack, ssr, server-side-rendering
Reactql
Universal React+GraphQL starter kit: React 16, Apollo 2, MobX, Emotion, Webpack 4, GraphQL Code Generator, React Router 4, PostCSS, SSR
Stars: ✭ 1,833 (+2720%)
Mutual labels:  webpack, ssr, server-side-rendering
React Starter Kit
React Starter Kit — front-end starter kit using React, Relay, GraphQL, and JAM stack architecture
Stars: ✭ 21,060 (+32300%)
Mutual labels:  webpack, boilerplate, ssr
Rpg Boilerplate
Relay (React), Postgres, and Graphile (GraphQL): A Modern Frontend and API Boilerplate
Stars: ✭ 62 (-4.62%)
Mutual labels:  webpack, ssr, server-side-rendering
Universal Native Boilerplate
Build apps for every native platform with React and React Native
Stars: ✭ 131 (+101.54%)
Mutual labels:  webpack, boilerplate, server-side-rendering
Project Webcube
Continuously updated JS infrastructure for modern web dev
Stars: ✭ 141 (+116.92%)
Mutual labels:  webpack, boilerplate, server-side-rendering

React Universal Boiler

styled with prettier Build Status codecov

Features

  • React 16
  • A pleasant 😍 developer experience with 🔥 fast bundling, so you can get shit done. This starter takes advantage of tools like, HappyPack and the DLL capabilities within Webpack itself. Your rebuilds happen fast because, nobody enjoys waiting around like a 🐢 while assets recompile.
  • React-Router 4: configured with async data loading.
  • React-Hot-Loader: Build your React components with less full page reloads thanks to hot module replacement and React Hot Loader.
  • Code Splitting: Give your visitors the best experience possible by allowing their browsers to only download what's necessary.
  • React-Universal-Component: The final answer to a React Universal Component: simultaneous SSR + Code Splitting.
  • Webpack Flush Chunks: flushes an array of rendered moduleIds or chunkNames.
  • Styled-Components: Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress.

Demo

https://boiler.strues.io

Usage

Development

Getting up and running for development is easy.

git clone [email protected]:strues/react-universal-boiler.git

cd react-universal-boiler

Install the dependencies yarn.

Copy the env file cp .env.example .env.

Start development yarn dev and your universal React application is running on port 3000.

Production

Running the two commands below will compile your application and serve the production ready build.

Build: yarn build

Run: yarn start

Env Variables

PORT=3000
# where assets will be "served" from
PUBLIC_PATH=/assets/
# Entry file for Webpack on the server
SERVER_ENTRY=src/entry/server.js
# Entry file for the client
CLIENT_ENTRY=src/entry/client.js
# Output directory for clientside 
CLIENT_OUTPUT=build/assets
# Output directory for the server bundle
SERVER_OUTPUT=build

Notes

Configuring the development DLLs is handled in tools/webpack/createWebpackConfig.js at the bottom in the AutoDLLWebpackPlugin options. Adding dependencies here allows Webpack to bundle them once, and not again during development. This dramatically speeds up rebundle times.

For production, this is handled for you by comparing imports to what's in node_modules.

This boilerplate uses babel 7, which is currently in beta. If you plan on using babel-plugin-transform-decorators-legacy, please see the Planning for Babel 7, particularly Stage 3: Class Properties (from Stage 2)

Resources

Alternatives

  • React, Universally A starter kit giving you the minimum requirements for a modern universal React application. I contribute to React Universally frequently.

  • ReactGo Your One-Stop solution for a full-stack app with ES6/ES2015 React.js featuring universal Redux, React Router, React Router Redux Hot reloading, CSS modules, Express 4.x, and multiple ORMs.

  • React Cool Starter A simple but feature rich starter boilerplate for you to build an universal web app with the best development experience and a focus on performance and best practices.

Contributing

Pull requests are welcome and encouraged. If I made a mistake, raise an issue and/or fix it and submit a PR. Have a question? I'll do what I can to answer it for you.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].