How prasad2995/flashwheels works
FlashWheels is a lightweight storefront for electric-vehicle parts, with browser-side cart and order handling, administrative/order-status pages, and Razorpay payment APIs. The apparent customer journey is browsing parts, adding them to a cart, placing an order, and checking its status; the provided excerpts confirm cart/order storage and payment operations but do not show how the HTML pages wire those steps together. A separate Supabase Edge Function provides payment verification, refunds, and payment timelines. Connections involving unsampled page integrations are therefore omitted.
Main entry points: cart.js Cart and checkout · server.js Payment API · index.ts Edge payment API · config.js Supabase client setup
Components 13
Storefront
- Parts catalog
parts-data.js - Storefront page
index/index.html - Cart page
cart.html
Cart and Orders
- Cart and checkout
cart.js - Browser storage
- Order status
order-status.html
Payments
- Payment API
server.js - Edge payment API
supabase/functions/node-api/index.ts - Supabase client setup
config.js
Operations
- Admin page
admin/index.html - Order dashboard
dashboard.html
Other components
- Customer
- Razorpay
Connections 5
- Customer → Storefront page: browses
- Cart and checkout → Browser storage: reads and writes
cart.js - Payment API → Razorpay: creates orders
server.js - Edge payment API → Razorpay: manages payments
supabase/functions/node-api/index.ts - Supabase client setup → Razorpay