Simple React boilerplate to start you up.
Includes:
- redux, redux-thunk, react-router
- smoking hot reloading
- sass support, css auto prefixing
- simple express server to serve the project
- webpack config for dev and prod
- Jest for testing
- modified airbnb eslint for linting, which you can easily remove/edit if you don't like it
- prettier config, which you can alter to your liking
- Husky precommit hooks for running unit tests and prettier
- setup that makes it very easy to deploy to something like Heroku.
- some dummy components and one very important test case
Install using npm or yarn, ie:
npm install
To run project in dev env with webpack-dev-server and source maps, run:
npm run dev
To run project in prod env with express server and minification of resources, run:
npm start
Simple function that wraps axios API calls and takes action creators to dispatch on call request, success or error. This can be extended with custom auth stuff, like headers, so you don't have to specify them with every API call you make. You can use it or delete it.