פרויקט סיום בריאקט
This project is a modern React application bootstrapped with Vite and written primarily in TypeScript. It employs a robust tech stack for building interactive, maintainable, and scalable web applications.
- React: UI library for building interactive user interfaces.
- TypeScript: Strongly-typed superset of JavaScript for safer and more robust code.
- Vite: Fast build tool and development server.
- Redux Toolkit: State management solution (using both
reduxand@reduxjs/toolkit), with React bindings viareact-redux. - React Router DOM: Client-side routing for single-page applications.
- Material UI (MUI): Modern component library for building visually appealing UIs.
- Emotion: CSS-in-JS solution used by Material UI (
@emotion/reactand@emotion/styled). - Axios: Promise-based HTTP client for communicating with APIs.
- ESLint: Linting for code quality and consistency.
- Jest / Testing Library (if added): For testing React components (not explicitly listed but recommended).
src/- Application source code (components, pages, hooks, store, etc.)public/- Static filesvite.config.ts- Project configuration for Vite and React pluginpackage.json- Project metadata, dependencies, and scriptstsconfig.*.json- TypeScript configuration files
git clone https://github.com/rivkastroh/react-final.git
cd react-final/final-reactnpm installnpm run dev- The application will typically be available at http://localhost:5173 (default Vite port).
npm run buildnpm run previewnpm run lint- All app source code is under the
src/directory. - State management is handled using Redux Toolkit.
- Routing is managed with React Router DOM.
- UI components are built using Material UI and styled with Emotion.
- API calls are handled by Axios. Configure API endpoints as needed.
tsconfig.app.json- Main app TypeScript config (strict mode, React JSX, bundler module resolution).tsconfig.node.json- Config for Node/Vite-related files.- Both configs enforce strict typing and modern JavaScript features.
זהו פרויקט צד לקוח שנבנה עם React, בעזרת Vite, ובשפת TypeScript. מטרת הפרויקט היא לבנות אפליקציית ווב מודרנית, אינטראקטיבית, וקלה לתחזוקה.
- React – בניית ממשקי משתמש דינמיים
- TypeScript – הרחבה טיפוסית ל-JavaScript לקבלת קוד בטוח וחזק
- Vite – כלי פיתוח והרצה מהיר
- Redux Toolkit – ניהול מצב גלובלי באפליקציה (עם redux ו-react-redux)
- React Router DOM – ניתוב (Router) בצד הלקוח
- Material UI – ספריית קומפוננטות מתקדמת לממשק משתמש מודרני
- Emotion – עיצוב CSS ב-JS (בשילוב עם MUI)
- Axios – קריאות HTTP לשרתים ואפיון API
- ESLint – שמירה על איכות קוד ואחידות
src/– כל קוד המקור של האפליקציה (קומפוננטות, דפים, hooks, store וכו')public/– קבצים סטטייםvite.config.ts– קונפיגורציה ל-Vite ולתוסף Reactpackage.json– תלויות, גרסאות וסקריפטיםtsconfig.*.json– קבצי קונפיגורציה ל-TypeScript
-
לשכפל את המאגר:
git clone https://github.com/rivkastroh/react-final.git cd react-final/final-react -
התקנת תלויות:
npm install
-
להריץ שרת פיתוח:
npm run dev
(ברירת מחדל: http://localhost:5173)
-
בניית גרסה לפרודקשן:
npm run build
-
תצוגה של גרסת פרודקשן מקומית:
npm run preview
-
בדיקת איכות קוד (לינטינג):
npm run lint
- לוגיקת ניהול מצב (סטייט) מתבצעת בעזרת Redux Toolkit.
- ראוטינג (ניתוב) מתבצע עם React Router DOM.
- כל עיצוב הממשק באמצעות Material UI ו-Emotion.
- פניות לשרת/REST מבוצעות עם Axios.
- כל קוד המקור נמצא בתיקיית
src/.
בהצלחה!