This guide will help you set up and run the project on your local machine for development and testing purposes.
- Node.js (v16 or later)
- npm (v8 or later) or yarn
- Git
-
Clone the repository
git clone https://github.com/yourusername/boilerplate-react-ts-reactquery-zustand-tailwind-genai.git cd boilerplate-react-ts-reactquery-zustand-tailwind-genai -
Install dependencies
npm install # or yarn -
Set up environment variables Create a
.envfile in the root directory and add your environment variables:VITE_API_BASE_URL=your_api_base_url VITE_APP_TITLE=Your App Name
In the project directory, you can run:
-
npm run devRuns the app in development mode. Open http://localhost:5173 to view it in the browser. -
npm run buildBuilds the app for production to thedistfolder. It correctly bundles React in production mode and optimizes the build for the best performance. -
npm run testLaunches the test runner in interactive watch mode. -
npm run test:coverageRuns tests and generates a coverage report. -
npm run lintRuns ESLint to check for code quality issues.
Refer to the Project Structure documentation for a detailed overview of the project's directory structure.
To learn more about the technologies used in this project, check out the following resources: