Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

oreqizer/reactizer-2016

Repository files navigation

REACTIZER

Project status

Please note that this project, while it served its purpose well, is no longer maintained. Thank you for understanding.


A React boilerplate that's always ahead! Click here to check out the live demo.

Build Status Code Climate Dependency Status devDependency Status GitHub license

This boilerplate has one thing in mind - use as few dependencies as possible, while having all the best features. If something is not absolutely necessary, you won't find it here.

Reactizer's goal is mainly to provide you with the best practices of building a modern React application. Feel free to open an issue or a pull request!

All the tech I chose is super new, sometimes even in an alpha version - thus if you'd like to use it for production, I recommend scaling those unstable versions down.

To check out the backend, click here!

Features:

The features currently present in the demo are as follows:

  • Server-side rendering, data fetching and i18n
  • Persistent, real-world example - your registration and TODOs are saved on my heroku app. Mind: it's just a demo. I recommend making up some arbitary username/email/password. I use test, with password Testtest1.
  • Truly universal architecture - shared Redux code in mobile, browser and server
  • Protected routes with JWT authentication
  • Immutable data
  • Full-out Webpack: hot-reloading, tree-shaking

Tech stack

Also in the bundle:

  • Sprites with gulp.spritesmith
  • Translation message collection with babel-plugin-react-intl
  • Server compilation with Babel, because that's the way it's supposed to be
  • No react-hot-loader, react-transform nor webpack-isomorphic-tools - I keep HMR and Webpack vanilla

Known issues:

React Native requires (due to it's Babel 5 dependency) babel-core and babel-cli to be placed in dependencies, instead of dev dependencies.

Having problems? Try running watchman watch-del-all

Tasks

Simply npm i. Then you have these following tasks available:

CORE

Web:

  • npm start - starts HMR and server (default at :8080)
  • npm run server - runs the server
  • npm run bundle - prepares all assets and builds the client and server code

Native:

  • npm run ios - runs react native ios
  • npm run android - runs react native android
  • npm run native - runs react native server
  • npm run native:clean - runs react native server and clears the cache

Common:

  • npm test - runs tests
  • npm run lint - runs eslint

OTHER

  • npm run messages - fetch all messages
  • npm run lint:fix - runs eslint and fixes problems, if it can
  • npm run test:coverage - runs tests and generates coverage info
  • npm run test:watch - runs tests in watch mode

TODO:

  • Koa2 (once Node supports async await)

About

(UNMAINTAINED) The most hipster React and React Native boilerplate! 😈

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published