Simple yet full of energy, like an Avocado! ๐ฅ
This is a react boilerplate which aims to be as simple as possible, while providing many useful features as SSR and fast developmenet iteration.
This project is derived from react-universally.
- ๐
react
as the view. - ๐
react-router
v4 as the router. - ๐ Server Side Rendering.
- ๐
express
server. - ๐ Styled Components for CSS.
- ๐ญ
jest
as the test framework. - ๐ Airbnb's ESlint configuration + Stylelint for Styled Components.
- ๐ 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, both server and client code
- ๐ง 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
- โ 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.
- ๐ฎ Security on the
express
server usinghelmet
andhpp
. - ๐ Asset bundling support. e.g. images/fonts.
- ๐ Preconfigured to support development and optimised production builds.
- โ Fully compatible with MacOS, Linux and Windows
git clone https://github.com/dariobanfi/react-avocado-starter
cd react-avocado-starter
npm i
npm run develop
WINDOWS Users: The project binds the dev server to 0.0.0.0
but this doesn't work for Windows.
To fix this, create a file called .env.development.local
under the project root and add the following line:
HOST=127.0.0.1
- 100% Coverage
- Remove warnings and noise
- Add redux
- Make application a bit nicer
- Update npm deps
- codecov