A slightly opinionated yet dead simple boilerplate for ReactJS
- redux-entity for domain entity management
- redux-thunk for asynchronous actions
- redux-logger for capturing actions
- react-router for client-side routing
- Customizable, promise-based HTTP support via Axios
- Implementing data services utilize Promise
- Supports SCSS & SASS syntax
- Browser compatibility via autoprefixing
- Environmental configurations for both webpack and redux
- Dev: webpack-dev-server with React Hot Loader.
redux-logger
enabled. - Prod: Express server with
redux-logger
disabled.
- Dev: webpack-dev-server with React Hot Loader.
- Tested with Mocha
- Coverage support via Istanbul
- react-addons-test-utils for component testing
- redux-mock-store for Redux state testing
- Sinon.JS for mocking, stubbing & spying
- git clone https://github.com/mikechabot/react-boilerplate.git
- Run
yarn
or 'npm install' - Launch environment:
- Production:
npm start
- Development:
npm run dev
- Build for production:
npm run build:prod
npm test
: Shortcut fortest:coverage
npm run test:unit
: Run unit tests located intest/unit/**/*.js
npm run test:integration
: Run integration tests location intest/integration/**/*.js
npm run test:coverage
: Run coverage for unit and integration tests