TechCare is a React-based project powered by Vite for fast development and build. Follow the steps below to get started with the project and manage its dependencies effectively.
Ensure you have the following installed on your system:
- Node.js (version 16 or higher recommended)
- npm (comes with Node.js) or yarn
-
Clone the repository:
git clone <repository_url> cd techcare
-
Install dependencies:
npm install
Alternatively, use
yarn
if you prefer:yarn install
Start the development server to view the app locally:
npm run dev
The app will be accessible at http://localhost:5173
.
To create a production-ready build:
npm run build
The build output will be in the dist
directory.
Preview the production build locally:
npm run preview
Check and fix code issues using ESLint:
npm run lint
react
&react-dom
: Core React libraries.chart.js
&react-chartjs-2
: For data visualization.
- Vite and its React plugin: Fast build tool and development server.
- ESLint and plugins: For linting and code quality.
- SASS: For styling using SCSS.
techcare/
├── src/
│ ├── components/ # Reusable React components
│ ├── assets/ # Images, fonts, etc.
│ ├── styles/ # SCSS/CSS files
│ ├── App.jsx # Main React component
│ └── main.jsx # ReactDOM render entry
├── public/ # Static files
├── .eslintrc.js # ESLint configuration
├── package.json # Project dependencies and scripts
└── vite.config.js # Vite configuration
- Customize the
vite.config.js
file if you need specific build or dev server configurations. - Use the provided ESLint setup for consistent code quality.
Happy coding! 🚀