How m-saad-saif/aurade works
AURADE is a Next.js watch storefront with editorial and support content, an illustrative catalog, browser-local shopping state, demo checkout, and a separate admin path for database-backed watch listings. The main shopper flow runs from catalog browsing to product detail, cart, checkout, and a tab-local receipt; wishlist and content routes are parallel capabilities. Admin watch creation/deletion uses authenticated API routes, MongoDB, and Cloudinary media. Evidence is limited to the README and indexed source references plus supplied excerpts; unsampled route and state wiring is not expanded beyond documented capabilities.
Main entry points: watches.js Store watch catalog · ProductCard.js Product cards · catalog.js Product and collection data · route.js Watch create and delete API
Components 26
Storefront discovery
- Home and featured catalog
app/page.js - Search and filters
components/ShopCatalog.js - Collection browsing
app/collections/[slug]/page.js - Watch details
components/ProductDetails.js - Product cards
components/ProductCard.js
Shopping experience
- Cart and wishlist state
components/StoreProvider.js - Cart editing and summary
components/CartView.js - Demo checkout
components/CheckoutForm.js - Tab-local receipt
components/OrderReceipt.js - Wishlist view
components/WishlistView.js - Cart validation and reducer
lib/cart.js
Editorial content
- About and journal
app/about/page.js - Support information
app/support/[slug]/page.js - Contact and trade inquiry
components/InquiryForm.js
Catalog administration
- Watch management UI
components/AdminWatchManager.js - Admin login route
app/api/admin/login/route.js - Watch create and delete API
app/api/admin/watches/route.js - Watch deletion route
app/api/admin/watches/[id]/route.js
Data and media
- Product and collection data
lib/catalog.js - Store watch catalog
lib/watches.js - Admin session checks
lib/adminAuth.js - Watch records
models/Watch.js - MongoDB connection
lib/mongodb.js - Media uploads and deletion
lib/cloudinary.js
Other components
- Shopper
- Cloudinary
Connections 46
- Shopper → Home and featured catalog: opens storefront
README.md - Home and featured catalog → Store watch catalog: loads watches
app/page.js - Home and featured catalog → Product and collection data: reads collections
app/page.js - Home and featured catalog → Product cards: renders products
app/page.js - Shopper → Search and filters: browses catalog
README.md - Search and filters → Product cards: renders results
components/ShopCatalog.js - Search and filters → Product and collection data: reads catalog
app/shop/page.js - Search and filters → Store watch catalog: loads watches
app/shop/page.js - Shopper → Collection browsing: opens collection
README.md - Collection browsing → Product and collection data: reads collection data
app/collections/[slug]/page.js - Collection browsing → Store watch catalog: loads watches
app/collections/[slug]/page.js - Collection browsing → Product cards: renders products
app/collections/[slug]/page.js - Shopper → Watch details: opens watch
README.md - Watch details → Product and collection data: reads product data
app/watches/[id]/page.js - Watch details → Store watch catalog: loads watches
app/watches/[id]/page.js - Watch details → Product cards: renders related items
app/watches/[id]/page.js - Product cards → Cart and wishlist state: updates wishlist
components/ProductCard.js - Product cards → Watch details: links to detail
components/ProductCard.js - Shopper → Cart editing and summary: edits bag
README.md - Cart editing and summary → Cart and wishlist state: reads shopping state
- Cart editing and summary → Cart validation and reducer: uses cart rules
- Shopper → Demo checkout: starts checkout
README.md - Demo checkout → Cart and wishlist state: reads shopping state
- Demo checkout → Tab-local receipt: creates demo receipt
README.md - Tab-local receipt → Product and collection data: formats totals
components/OrderReceipt.js - Shopper → Wishlist view: views wishlist
README.md - Wishlist view → Cart and wishlist state: reads wishlist
- Shopper → About and journal: reads brand stories
README.md - Shopper → Support information: opens support pages
README.md - Shopper → Contact and trade inquiry: submits inquiry
README.md - Shopper → Watch management UI: manages catalog
- Watch management UI → Watch create and delete API: posts watch data
components/AdminWatchManager.js - Watch management UI → Watch deletion route: requests deletion
- Admin login route → Admin session checks: checks session
app/api/admin/login/route.js - Watch create and delete API → Admin session checks: checks admin
app/api/admin/watches/route.js - Watch create and delete API → MongoDB connection: connects database
app/api/admin/watches/route.js - Watch create and delete API → Watch records: creates watch
app/api/admin/watches/route.js - Watch create and delete API → Media uploads and deletion: uploads media
app/api/admin/watches/route.js - Watch deletion route → Admin session checks: checks admin
app/api/admin/watches/[id]/route.js - Watch deletion route → MongoDB connection: connects database
app/api/admin/watches/[id]/route.js - Watch deletion route → Watch records: deletes watch
app/api/admin/watches/[id]/route.js - Watch deletion route → Media uploads and deletion: deletes media
app/api/admin/watches/[id]/route.js - Media uploads and deletion → Cloudinary: uses media host
- Store watch catalog → MongoDB connection: connects database
lib/watches.js - Store watch catalog → Watch records: queries watches
lib/watches.js - Store watch catalog → Product and collection data: adds demo products
lib/watches.js