React Boilerplate by Nord Software.
As you probably know, there are numerous boilerplates avaliable for React, so you might be wondering why you would want to use ours. Most of the boilerplate projects come with a lot of code that you rarely need. Our boilerplate provides you with a great starting point for any React project with as few lines of code as possible, especially if you want to use Flowtype. We strive to remove any code that turns out to be unnecessary.
You can find our documentation here.
- Flowtype Type checker
- Yarn Dependency manager
- React User interface components
- Redux Predictable state container
- Lodash Utility library
- PostCSS CSS plugins
- Babel ES.Next transpiler
- ESLint Linting utility
- Webpack Module bundler
- Mocha Testing framework
- Chai Assertion library
- Enzyme React testing utilities
- And more...
Install create-project and create your project.
npm i -g create-project
create-project my-project nordsoftware/react-boilerplate
Install the project dependencies using Yarn.
yarn
You can start the development server with the start
script.
yarn start
You can compile the distribution build with the compile
script.
yarn run compile
You can run the test suite with the test
script.
yarn test
Protip: You can also run the test suite in watch mode with the test:watch
script.
You can generate the test coverage report with the test:coverage
script.
yarn run test:coverage
Protip: You can also generate the test coverage report in HTML with the test:coverage-html
script.