How umttikhinadasha/it-bookstore works
Project type and purpose
• This is a single-page front-end application (no back-end code in this repo) for browsing and searching a catalog of IT books and authors.
• Built with React + TypeScript + Vite, uses Redux Toolkit for state management, React Router for navigation, Sass for styling, and follows the Feature-Sliced Design (FSD) methodology.
• Its main responsibilities:
• Render pages (home, search results, book details, categories, cart)
• Fetch data from external APIs (books, categories, authors, search) via the shared/api layer
• Manage UI state (themes, cart contents, search queries) in Redux
• Provide routing and theming
File structure and key directories
• src/app: application root
• App.tsx: mounts providers (Redux Provider, ThemeProvider, Router)
• layout/: global layout components (header, footer, main wrapper)
• routers/: React Router setup and route definitions
• providers/: context and service providers (theme, any future contexts)
• store.ts: Redux store configuration
• src/pages: page-level components, one directory per route
• src/features: reusable UI-behavior blocks with their own state slices and thunks
• search, cart features for dispatching actions and deriving selectors
• src/entities: domain-centric modules (author, book, category, cart, theme)
• Each entity contains model (Redux slice + thunks + selectors) and ui components
• src/widgets: higher-level UI components composed of entities and shared/UI elements
• src/shared: cross-cutting concerns
• api/: HTTP clients and endpoints for book, category, search
• lib/: utility hooks (debounce, media queries, price formatting)
• ui/: design system primitives (buttons, inputs, loaders, etc.)
• types, consts, assets
README for additional insights
• Clearly lists features: search, categories, author pages, cart, theming
• Technology stack confirms React, TS, Redux Toolkit, React Router, Sass, Vite
• FSD badge indicates how code is organized into layers (app, pages, features, entities, shared, widgets)