How nnq1610/bookstore_frontend works
Project type and purpose
• This is a frontend-only Single-Page Application (SPA) built with Create React App and TypeScript.
• Its purpose is to present books (Sách) to users: list books, show details (images, reviews), and allow user registration. It fetches data from a RESTful backend via API wrappers in src/api.
File structure
• Top‐level:
• public/ — static HTML/CSS/manifest for the SPA entrypoint.
• src/ — TypeScript code for the React app.
• package.json, tsconfig.json, etc. — build/configuration.
• In src/:
• api/ — service layer (Request.ts, SachApi.ts, HinhAnhApi.ts, DanhGiaApi.ts) that handles HTTP calls.
• models/ — shared data models (SachModel, HinhAnhModel, DanhGiaModel).
• layouts/ — feature folders:
– header-footer (Navbar, Footer)
– homepage (Banner, Carousel, Pagination)
– product (ProductList, ProductDetail components: images, reviews)
– about, user (registration), util (number formatting, ranking).
• App.tsx & index.tsx — application entry and router setup.
README
• It’s the default Create React App README, confirming the dev server, build scripts, and that this is purely a React front-end.