This is a basic scaffold to get started with a new React project without (all) the bloat and faff of CRA. It includes the following:
- Axios
- Redux
- Redux-saga
- Requested/Succeeded/Failed Middleware/Saga, based on presence of request in action
- React Router
- Dotenv
- Lodash
- Normalizr
- ESLint
- Jest
- CI via GitHub Actions
Todo:
- GraphQL
- TypeScript/Flow
It's probably a good idea to use something like nodenv. We've included a .node-version file to make sure your nodenv uses a matching version of node with it.
- Run
npm run dev - Go to
localhost:3000
Dotenv-webpack is included, if you'd like to use differing ENV vars for different environments. Put a dummy version of any ENV variables you want to include in the .env.example file and include a bit in your README like so:
cp .env.example .envESLint is set up. You can run it with:
npm run lintTesting is provided by Jest. Reference on assertions available:
Testing runs can be launched with:
npm run test