Minimal boilerplate with React, Redux and styled-components using webpack compiler.
# use / install projects node version with nvm
nvm use
# or n
n auto
# install all project dependencies one
npm i
# start local development
npm start
# run tests (Jest)
npm test
# or run with watch mode
npm run test:watch
# create a build
npm build
- How to structure your React app? Have a look at the React FAQs. I would recommend to structure your app by features: One feature folder that contains styles, JS, tests and assets, if possible. Is it a huge feature? Create a new root folder for that feature.
- Good additional read: Best practices for building a large scale react application
- Write tests, this boilerplate comes with a basic Jest w/ Enzyme setup.
- Make yourself familiar with React, Redux and styled-components - the live editor examples are really helpful.
- On each commit
husky
runs eslint (with configured prettier plugin) and testsnpm test
.