React App Starter

Setup

  • npm ci

Build

  • npm run build

Setup and build with minimal dependencies

  • npm ci --only=prod
  • npm run build

Develop

Recommended setup

  • Visual Studio Code
  • Install recommended extensions

Linting, formatting and import sorting should work automatically.

Scripts

  • Start the app with npm start
  • Run unit tests with npm run test
  • Run UI tests with npm run cypress:open

Debugging in VS Code

Start the app by running npm start and start debugging in VS Code by pressing F5 or by clicking the green debug icon (launch config Chrome Debug).