A ready-to-go, production ready React.js boilerplate, backed by reliant technologies and tools to get your React projects up and running in no time. The boilerplate includes basic examples of API calls and UI elements usage.
While researching different frameworks and tools to assist with building new SPAs, I realized that this older boilerplate had some neat development and production tools that facilitate fast development.
All deprecated libraries have been updated, and those no longer supported have been replaced with alternatives that offer long-term support.
Compatibility with the latest versions of Node.js, npm, and operating systems has also been improved.
You can also check out the official page of the boilerplate here.
git clone https://github.com/theqdev/react-big-bang
npm run setup
ornpm install
npm start
npm run clean-dist
- Cleans the build directorynpm run prebuild
- Cleans the build directory and runs linting and testsnpm run build
- Generates the production buildnpm run analyze-bundle
- Analyzes bundle size and its libraries
npm run lint
ornpm run lint:watch
npm run test
Under the hood, the kit is powered by:
Tech | Description |
---|---|
React | Fast, composable client-side components. |
react-bootstrap | React Bootstrap UI kit for React.js. |
Redux - Redux Sauce - Redux Saga | Redux store implementation. Enforces unidirectional data flows and an immutable, hot-reloadable store that supports time-travel debugging. |
APISauce | Axios-based API wrapper for mapping your app's backend. |
React Router | A complete routing library for React. |
Babel | Compiles code to any desired presets. |
Webpack | Bundles npm packages and our JS into a single file. Includes hot reloading. |
Browsersync | Lightweight development HTTP server that supports synchronized testing and debugging on multiple devices. |
Jest | Automated tests with built-in expect assertions and react-testing-library for DOM testing without a browser using Node. |
TrackJS | JavaScript error tracking. |
ESLint | Lint JS. Reports syntax and style issues. Using eslint-plugin-react for additional React-specific linting rules. |
SASS | Compiled CSS styles with variables, functions, and more. |
PostCSS | Transforms styles with JS plugins. Used to autoprefix CSS. |
EditorConfig | Enforces consistent editor settings (spaces vs tabs, etc). |
npm Scripts | Glues all this together in a handy automated build. |
If you ever end up using this and find a fix or an improvement, don't hesitate to open a PR of your changes.
Check out our website at Qdev and our other projects at Envato Market for more cool stuff.