How icraftds/ic-market-fe works
This repository is an ICMarket Nuxt application: its tree indicates a storefront, checkout and order handling, seller tools, administration, and top-up/voucher capabilities. The principal user journey appears to run from product discovery through cart and checkout to payment and order tracking; seller and admin areas form separate operational branches. The sampled server code also implements a substantial SSO boundary with OAuth, session management, and durable storage. Most page implementations were not sampled, and the README is only a Nuxt starter, so application links are shown as capabilities rather than asserted call flows.
Main entry points: handler.js SSO request handler · session.js Session service · oauth.js OAuth provider client · security.js SSO security checks
Components 28
Storefront and shopping
- Storefront
app/pages/index.vue - Seller storefront
app/pages/store/[slug].vue - Product card
app/components/ProductCard.vue - Product catalog
app/composables/useProductCatalog.js - Shopping cart
app/composables/useCart.js - Top-up
app/pages/topup.vue - Vouchers
app/pages/vouchers.vue
Checkout and fulfillment
- Checkout
app/pages/checkout.vue - Payment
app/pages/payment.vue - Order success
app/pages/success.vue - Order tracking
app/pages/orders.vue - Order state
app/composables/useOrderStore.js - Find order
app/composables/useFindOrder.js
Seller and administration
- Seller workspace
app/pages/seller/dashboard.vue - Seller products
app/pages/seller/products/index.vue - Seller applications
app/composables/useSellerApplications.js - Admin workspace
app/pages/admin
Identity and API access
- Login and SSO
app/pages/login.vue - SSO client auth
app/composables/useSsoAuth.js - SSO route adapters
server/routes/auth/callback.get.js - SSO request handler
server/sso/handler.js - SSO runtime
server/sso/runtime.js - OAuth provider client
server/sso/oauth.js - Session service
server/sso/session.js - SSO security checks
server/sso/security.js - Redis session store
server/sso/store.js
Other components
- Shopper
- Upstash Redis
Connections 9
- SSO route adapters → SSO request handler: delegates to
server/routes/auth/callback.get.js - SSO request handler → SSO security checks: validates with
server/sso/handler.js - SSO request handler → Session service: uses sessions
server/sso/handler.js - SSO request handler → OAuth provider client: uses OAuth
server/sso/handler.js - Session service → SSO security checks: validates callbacks
server/sso/session.js - Session service → OAuth provider client: refreshes tokens
server/sso/session.js - Session service → Redis session store: persists sessions
server/sso/session.js - OAuth provider client → SSO security checks: checks responses
server/sso/oauth.js - Redis session store → Upstash Redis: stores records
server/sso/store.js