Skip to content

WeAreAcademy/academy-react-starter

Repository files navigation

Simplified CRA (Create-React-App) starter

Creative Commons License

This is part of Academy's technical curriculum for The Mark. All parts of that curriculum, including this project, are licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License

This project was created using Create React App

Extra features added:

  • Add CI with GitHub Actions
  • Add custom eslint config
  • Prettier
  • TypeScript
  • Removed unneccessary logo images
  • Removed unnecessary web-vitals
  • Added an example extra module and unit test (greet.ts)
  • Added more scripts to package.json
    "test": "react-scripts test --watchAll=false",
    "test:watch": "react-scripts test",
    "format": "prettier --write src",
    "format:check": "prettier --check src",
    "lint": "eslint src",
    "type-check": "tsc --noEmit"

What's the jest / axios config in package.json?

A workaround to jest incompatibilities with axios now that the latter is packaged as ESM.

"jest": {
    "moduleNameMapper": {
      "axios": "axios/dist/node/axios.cjs"
    }
  }

Read more here

Learn more about Create-React-App

You can learn more in the Create React App documentation.

To learn React, check out the React documentation or the new docs (in beta)