๐Ÿ“ฆ leonardomso / react-bolt

โšก The most simple & robust boilerplate for your React projects.

โ˜… 323 stars โ‘‚ 100 forks ๐Ÿ‘ 323 watching
babelboilerplatecsscypresseslintjestreactreduxrobuststyled-componentswebpack
๐Ÿ“ฅ Clone https://github.com/leonardomso/react-bolt.git
HTTPS git clone https://github.com/leonardomso/react-bolt.git
SSH git clone git@github.com:leonardomso/react-bolt.git
CLI gh repo clone leonardomso/react-bolt
Leonardo Maldonado Leonardo Maldonado Merge pull request #32 from gustavowebjs/axios-config 2d8b9d1 4 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ build
๐Ÿ“ config
๐Ÿ“ cypress
๐Ÿ“ src
๐Ÿ“ tests
๐Ÿ“„ .babelrc
๐Ÿ“„ .eslintrc
๐Ÿ“„ .gitignore
๐Ÿ“„ .prettierrc
๐Ÿ“„ cypress.json
๐Ÿ“„ package.json
๐Ÿ“„ README.md
๐Ÿ“„ webpack.config.js
๐Ÿ“„ yarn.lock
๐Ÿ“„ README.md


React Bolt

React Bolt

The best boilerplate for your React projects.

PRs Welcome License MIT


Introduction

This boilerplate contains all you need to start your next React.js project. Simple, robust, well-organized, all you need to do is clone, install and you're ready to start.

I wrote a article for anyone who wants to learn how to build this boilerplate, if you want to learn just click here.

Check out the lite version here

Features

This boilerplate features all the latest tools and practices in the industry.

  • โš› React โ€” 16.12.0 with Hooks
  • โ™ป Redux with Redux Thunk โ€” State Management with middleware to handle async requests
  • ๐Ÿ›  Babel โ€” ES6 syntax, Airbnb & React/Recommended config
  • ๐Ÿš€ Webpack โ€” Hot Reloading, Code Splitting, Optimized Build
  • ๐Ÿ’… CSS โ€” Styled Components, CSS, Sass
  • โœ… Tests โ€” Jest, React Testing Library & Cypress
  • ๐Ÿ’– Lint โ€” ESlint
  • ๐Ÿถ Husky โ€” Prevent bad commits

Getting started

  • Clone this repo using https://github.com/leonardomso/react-bolt.git
  • Move to the appropriate directory: cd react-bolt.
  • Run yarn or npm install to install dependencies.
  • Run npm start to see the example app at http://localhost:8080.

Commands

  • npm start - start the dev server
  • npm run build - create a production ready build in dist folder
  • npm run lint - execute an eslint check
  • npm run lint:fix - execute an eslint and fix the errors
  • npm test - run all tests
  • npm run test:watch - run all tests in watch mode
  • npm run test:cover - coverage mode
  • npm run cypress:open - starts cypress

Next features:

  • Hot Module Replacement: Better HMR support;
  • CSS/Sass support: Enable CSS/Sass support;
  • PWA: Turn into a PWA boilerplate;
  • SEO: SEO-ready;

License

MIT license, Copyright (c) 2018 Leonardo Maldonado.