- عنوان کتاب: React Application Architecture for Production
- نویسنده: Alan Alickovic, Anthony Alicea
- حوزه: آموزش React
- سال انتشار: 2026
- تعداد صفحه: 375
- زبان اصلی: انگلیسی
- نوع فایل: pdf
- حجم فایل: 18.9 مگابایت
ساخت برنامههای کاربردی در مقیاس بزرگ در محیط عملیاتی با React میتواند به دلیل تعداد زیاد انتخابها و کمبود منابع منسجم، بسیار دشوار باشد. این راهنمای عملی برای به اشتراک گذاشتن شیوهها و مثالهایی طراحی شده است تا به رفع این چالشها در ساخت برنامههای کاربردی آماده برای سازمانها با React کمک کند. در این کتاب، ابتدا اصول معماری پشت برنامههای کاربردی React مقیاسپذیر را مورد بحث قرار خواهیم داد. سپس، پایه و اساس پروژه را با Vite، TypeScript، ESLint، Prettier و Husky بنا خواهیم کرد و آن را با یک ساختار پوشه مبتنی بر ویژگی سازماندهی خواهیم کرد. سپس اجزای مستند و قابل استفاده مجدد را با Shadcn UI و Storybook خواهیم ساخت و یاد خواهیم گرفت که چگونه استراتژیهای مسیریابی و رندر، از جمله پیشرندر، SSR، CSR و رویکردهای ترکیبی را با استفاده از React Router در حالت چارچوب، مدیریت کنیم. پس از آمادهسازی پایهها، نحوه ارتباط با APIها را به روشی ایمن از نظر نوع با استفاده از انواع تولید شده توسط OpenAPI، اعتبارسنجی Zod و React Query برای وضعیت سرور پوشش خواهیم داد. ما ابزارهای مدیریت وضعیت مناسب برای هر مورد استفاده را بررسی خواهیم کرد و وضعیت محلی، وضعیت سراسری، وضعیت فرم و وضعیت URL را قبل از پیادهسازی احراز هویت مبتنی بر کوکی، سیاستهای مجوزدهی و شیوههای امنیت محتوا پوشش خواهیم داد. در نهایت، با بهینهسازی عملکرد با memoization، تقسیم کد و streaming، افزودن internationalization با react-i18next، تضمین دسترسی با پیروی از اصول WCAG و نوشتن یک مجموعه تست جامع با Vitest و Playwright، کیفیت برنامه را بهبود خواهیم بخشید. ما با راهاندازی یک خط لوله CI/CD با GitHub Actions و بررسی مباحث پیشرفتهای مانند اجرای معماری با هوش مصنوعی، کامپوننتهای React Server، feature agها، monoreposها و microfrontendها، به پایان خواهیم رسید. در پایان کتاب، شما قادر خواهید بود با پیروی از شیوههای صنعتی و نکات تخصصی، برنامههای آماده تولید را به طور مؤثر بسازید.
Building large-scale applications in production with React can be overwhelming due to the number of choices and lack of cohesive resources. This hands-on guide is designed to share practices and examples to help address these challenges in building enterprise-ready applications with React. In this book, we will Ýrst discuss the architectural principles behind scalable React applications. Then, we will lay out the foundation of the project with Vite, TypeScript, ESLint, Prettier, and Husky, and organize it with a featurebased folder structure. We will then build reusable, documented components with Shadcn UI and Storybook, and learn how to handle routing and rendering strategies, including pre-rendering, SSR, CSR, and hybrid approaches using React Router in framework mode. Once the foundations are in place, we will cover how to communicate with APIs in a type-safe way using OpenAPI-generated types, Zod validation, and React Query for server state. We will explore the right state management tools for each use case, covering local state, global state, form state, and URL state before implementing cookie-based authentication, authorization policies, and content security practices. Finally, we will improve the quality of the application by optimizing performance with memoization, code splitting, and streaming, adding internationalization with react-i18next, ensuring accessibility by following WCAG principles, and writing a comprehensive test suite with Vitest and Playwright. We will Ýnish by setting up a CI/CD pipeline with GitHub Actions and looking at advanced topics such as enforcing the architecture with AI, React Server Components, feature àags, monorepos, and microfrontends. By the end of the book, you will be able to efÝciently build production-ready applications by following industry practices and expert tips.
این کتاب را میتوانید از لینک زیر بصورت رایگان دانلود کنید:





نظرات کاربران