Skip to content

Latest commit

Β 

History

History
68 lines (46 loc) Β· 1.52 KB

File metadata and controls

68 lines (46 loc) Β· 1.52 KB

react-typescript-template

  • React/Typescript production-ready project template with all the necessary dev tools so that you can start building your project immediately πŸ§‘πŸ»β€πŸ’» πŸš€.
  • What does this template come with?

Prerequisites

  • Must have git installed.
  • Must have Node latest LTS version installed.

How to use this template

Run the command below to create a new project and replace your-project-name with your actual project name:

git clone https://github.com/quangnguyen17/react-typescript-template.git your-project-name

To install project dependencies:

npm install

To start project:

npm run start

To run unit tests:

npm run test

# for CI/CD
npm run test:ci

To run e2e tests:

npm run cy

# for CI/CD
npm run cy:ci

To format your code:

npm run prettier

To create a production build:

npm run build

Husky hooks:

  • pre-commit hook runs Prettier code formatting and unit tests.