piech.dev

Back to Projects github.com/tenemo/reactplate

reactplate

Netlify Status

A React + modern Redux (RTK) boilerplate for a fully configured quick start with automatic formatting and linting with ESLint & Prettier.

The template follows best practices such as:

and many others. It scores perfect 100/100/100/100 score in Chrome Lighthouse.
Vitest example

Features

React

State management

Linting & formatting

Styling

Testing

Example usage with Redux and Redux Toolkit included.

Build & development

Getting started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/Tenemo/reactplate.git
    cd reactplate
  2. Install dependencies:

    npm install
  3. Create environment variables file:

    cp .env.sample .env

    Add your Sentry DSN in the .env file if you want error tracking. Otherwise, feel free to add your own environment variables or remove the .env handling altogether.

Development

  1. Start the development server:

    npm run dev

    This will launch the application at http://localhost:3000 with hot reloading enabled.

  2. Run tests:

    npm test  # Run tests once
    npm run test:watch # Run tests in watch mode
    npm run test:coverage # Generate test coverage report

Building for Production

npm run build

To build without running linting and tests:

npm run build:skip

To analyze your bundle size:

npm run build:analyze

VS Code

For the best development experience in VS Code install recommended VS Code extensions when prompted. All necessary configuration is already present in .vscode/settings.json

License

This project is licensed under the MIT License - a permissive free software license that places almost no restrictions on what you can do with this project.