How mizanurrahmann/be-bookaholic works
Be Bookaholic is a React online bookstore. Users browse category-based book listings and details, add books to a basket, review totals, then enter shipping, payment, and confirmation steps; account, profile, and wishlist features provide supporting flows. The graph preserves the main UI stages and shared state/Firebase layers. Some components were not excerpted, so their documented/import relationships are shown only where the source index or README supports them; unsampled internals are not inferred.
Main entry points: App.js Router and routes · util.js Firebase clients · Shopping.js Order workflow · BookList.js Book listings
Components 28
Application shell
- Router and routes
src/App.js - Navigation
src/components/navbar/Navbar.js - Store announcements
src/components/banner/Announcement.js - Store footer
src/components/Footer/Footer.js - Offline worker support
src/serviceWorker.js
Book catalog
- Book listings
src/components/books/BookList.js - Category listing
src/components/books/BookCategoryView.js - Book details
src/components/books/BookDetail.js - Book card
src/components/books/Book.js - Loading display
src/components/books/BookLoading.js
Customer account
- Authentication views
src/components/auth/Auth.js - Login
src/components/auth/Login.js - Registration
src/components/auth/Register.js - Customer profile
src/components/profile/Profile.js - Wishlist
src/components/wishlist/Wishlist.js
Basket and ordering
- Basket checkout
src/components/checkout/Checkout.js - Basket item
src/components/checkout/CheckoutItem.js - Order workflow
src/components/order/Shopping.js - Shipping address
src/components/order/AddressForm.js - Payment selection
src/components/order/PaymentForm.js - Order confirmation
src/components/order/Confirmation.js
State and Firebase
- Shared state
src/components/Context/StateProvider.js - State reducer
src/components/Context/Reducer.js - Firebase clients
src/firebase/util.js
Other components
- Shopper
- Cloud Firestore
- Firebase Auth
- Firebase Storage
Connections 38
- Shopper → Router and routes: uses
src/App.js - Router and routes → Navigation: renders
src/App.js - Router and routes → Store announcements: routes to
src/App.js - Router and routes → Book listings: routes to
src/App.js - Router and routes → Category listing: routes to
src/App.js - Router and routes → Book details: routes to
src/App.js - Router and routes → Basket checkout: routes to
src/App.js - Router and routes → Authentication views: routes to
src/App.js - Router and routes → Customer profile: routes to
src/App.js - Router and routes → Wishlist: routes to
src/App.js - Router and routes → Order workflow: routes to
src/App.js - Router and routes → Store footer: renders
src/App.js - Book listings → Book card: renders
src/components/books/BookList.js - Book listings → Loading display: renders
src/components/books/BookList.js - Category listing → Book card: renders
src/components/books/BookCategoryView.js - Category listing → Loading display: renders
src/components/books/BookCategoryView.js - Book details → Loading display: renders
src/components/books/BookDetail.js - Book listings → Cloud Firestore: reads books
src/components/books/BookList.js - Authentication views → Login: selects
src/components/auth/Auth.js - Authentication views → Registration: selects
src/components/auth/Auth.js - Login → Firebase clients: uses auth
src/components/auth/Login.js - Registration → Firebase clients: uses auth
src/components/auth/Register.js - Customer profile → Cloud Firestore: reads and writes
src/components/profile/Profile.js - Customer profile → Firebase Storage: uploads image
src/components/profile/Profile.js - Wishlist → Shared state: uses state
src/components/wishlist/Wishlist.js - Basket checkout → Basket item: renders
src/components/checkout/Checkout.js - Basket checkout → Shared state: updates basket
src/components/checkout/Checkout.js - Basket checkout → Order workflow: links to
src/components/checkout/Checkout.js - Order workflow → Shipping address: renders step
src/components/order/Shopping.js - Order workflow → Payment selection: renders step
src/components/order/Shopping.js - Order workflow → Order confirmation: renders step
src/components/order/Shopping.js - Router and routes → Shared state: uses state
src/App.js - Shared state → State reducer: runs reducer
src/index.js - Router and routes → Firebase clients: uses clients
src/App.js - Firebase clients → Cloud Firestore: initializes
src/firebase/util.js - Firebase clients → Firebase Auth: initializes
src/firebase/util.js - Firebase clients → Firebase Storage: initializes
src/firebase/util.js - Router and routes → Offline worker support: imports support
src/index.js