- ⚛️ React 18
- 📏 ESLint — To find and fix problems in your code
- 💖 Prettier — Code Formatter for consistent style
- 🐶 Husky — For running scripts before committing
- 🖌 Renovate — To keep your dependencies up to date
- 🚫 lint-staged — Run ESLint and Prettier against staged Git files
- ⚙️ EditorConfig - Consistent coding styles across editors and IDEs
- 🗂 Path Mapping — Import components or images using the
@
prefix - 🚓 Axios - Interceptor configured
- 🐫 Lodash - cameliseCase() to convert any key of any data type into camel case
- ⛑ Tanstack Query - QueryClient instance with overridden default options
Please read Medium Blog for more
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
The best way to start with this template is using degit.
npx degit https://github.com/aggarwal-muskaan/cra-boost your-project-name
cd your-project-name
npm install
To start the project locally, run:
npm run dev
Open http://localhost:5173
with your browser to see the result.
- Node.js >= 16
- npm 8
.husky
— Husky configuration and hooks.public
— Static assets such as robots.txt, and favicon.src
— Application source code, including components, lib, utilities, and styles.
npm run dev
— Starts the application in development mode athttp://localhost:5173
.npm run build:dev
— Creates an optimized build of your application using.env
file.npm serve:dev
— Starts the application in development mode withNODE_ENV = production
.npm build
- Creates an optimized build of your application using.env.production
filenpm serve
— Starts the application in production mode withNODE_ENV = production
.npm lint
— Runs ESLint for all files in thesrc
directory.npm run format
— Runs Prettier for all files in the directory includingjson
config files.npm run preview
- Previewing the build locally.
To import components or files, use the @
prefix.
import { MyButton } from '@/components/MyButton';
// js files
import { HttpErrorResponse } from '@/constants/HTTPErrorResponse';
import { getQueryClientInstance } from '@/lib/queryClient';