How greyn1/capstone-project works
Project type and purpose
• This is a single-page e-commerce storefront built with Create React App.
• It provides shopping features (browse categories, add to cart, checkout) entirely in the browser.
• State is managed via React Context APIs; data and authentication are handled by Firebase.
File structure
• Top-level:
• public/ – static assets and entry HTML (index.html, manifest.json, redirects for hosting).
• src/ – application source code.
• package.json / package-lock.json – dependencies and scripts.
• src/Contexts – three context providers: CartContext, CategoriesContext, UserContext.
• src/Routes – six route modules mapping URL paths to page components.
• src/components – reusable UI components (Button, CartIcon, ProductCard, forms, spinner).
• src/Utils/Firebase.js – wrapper for Firebase SDK calls (auth, Firestore).
• src/Styles & global.styles.js – SCSS and styled-component definitions.
• Entry point: src/index.js → ReactDOM.render(App) with context providers and React Router.
README for additional insights
• Bootstrapped with CRA; standard scripts (start, build, test, eject).
• No mention of custom backend—Firebase is the external service.
Detail
• Context as a separate element.
• Firebase util module as a centralized service connector.
• Style layers (SCSS + styled components) as a side strand, injected into components.
• Don’t hesitate to break UI into its smallest reusable parts—better granularity will aid understanding.