Skip to content

React Architecture Template: pre-configured with Vite, TypeScript, ESLint, and Prettier for modern development. Clone or create new repo.

Notifications You must be signed in to change notification settings

AndreAmorim05/react-architecture

Repository files navigation

React Architecture Template

This is a template project for building React applications with Vite, TypeScript, ESLint, and Prettier.

Why Use This Template?

This template provides a solid starting point for building React applications with Vite, TypeScript, ESLint, and Prettier. It saves you time and effort by providing a pre-configured development environment and tooling setup.

With this template, you can focus on building your application logic without having to worry about setting up your development environment or configuring your tools. Additionally, using TypeScript and ESLint ensures that your code is type-safe and follows best practices for writing maintainable and scalable code.

Features

  • Vite - A fast build tool that provides a modern development experience.
  • TypeScript - A typed superset of JavaScript that compiles to plain JavaScript.
  • ESLint - A tool for identifying and reporting on patterns found in ECMAScript/JavaScript code.
  • Prettier - An opinionated code formatter that enforces a consistent code style.
  • React - A JavaScript library for building user interfaces.

Getting Started

To get started with this template project, you can either clone the repository or create a new repository using this template.

Prerequisites

Make sure you have either yarn or npm installed on your machine.

Installing Dependencies

To install the dependencies, run the following command:

yarn install
# or
npm install

Running the Project

To start the development server, run the following command:

yarn dev
# or
npm run dev

Building the Project

To build the project for production, run the following command:

yarn build
# or
npm run build

Previewing the Project

To preview the production build of the project, run the following command:

yarn preview
# or
npm run preview

Linting the Code

To lint the code, run the following command:

yarn lint
# or
npm run lint

Fixing Linting Issues

To automatically fix linting issues, run the following command:

yarn lint:fix
# or
npm run lint:fix

Checking Code Formatting

To check the code formatting, run the following command:

yarn prettier
# or
npm run prettier

Fixing Code Formatting

To automatically fix code formatting issues, run the following command:

yarn prettier:fix
# or
npm run prettier:fix

Formatting the Code

To format the code, run the following command:

yarn format
# or
npm run format

About

React Architecture Template: pre-configured with Vite, TypeScript, ESLint, and Prettier for modern development. Clone or create new repo.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published