react-boilerplate icon indicating copy to clipboard operation
react-boilerplate copied to clipboard

React 18, React-Router, Typescript, Vite, Babel 7, React-Testing-Library, ESLint, Vitest

React Boilerplate

Build

Installation

Requires Node >=14.x

Install Yarn:

https://yarnpkg.com/lang/en/docs/install/

Clone and install Yarn dependencies:

$ git clone [email protected]:chuntley/react-boilerplate.git
$ cd react-boilerplate
$ yarn

Development

To lift the dev server (default port 3000) with hot module reloading.

$ yarn dev

The application can be reached at http://localhost:3000

Build

To bundle the React application

$ yarn dist

Testing

# run all tests including coverage report and linting
$ yarn test

# run tests in watch mode
$ yarn test:watch

# run single test without coverage or linting
$ yarn test:lite

Linting

$ yarn lint