How yago-jnp/luciene-modas works
Luciene Modas is an online storefront for the retailer’s products, with customer accounts, cart and order handling, and product-management capabilities. The principal workflow is product discovery, adding items to a cart, and submitting an order; separate branches cover account access, comments, and administration. The sampled sources show several API-to-database and authentication relationships. Many page-to-API connections and the upload integration were not shown, so they are represented without inferred wiring.
Main entry points: db.js PostgreSQL · getUsuarioServerSide.js Session User Lookup · itens-carrinho/route.js Cart Items API · pedidos/route.js Orders API
Components 22
Storefront
- Storefront Pages
src/app/page.jsx - Product Search
src/app/pesquisar/page.jsx - Product Catalog API
src/app/api/produtos/route.js - Product Details
src/app/produtos/[id]/page.jsx - Product Cards
src/components/produtos/CardProduto.jsx
Cart and Orders
- Cart State
src/app/_store/carrinho.js - Cart Items API
src/app/api/itens-carrinho/route.js - Cart Page
src/app/carrinho/_components/ClientComponent.jsx - Checkout
src/app/checkout/page.jsx - Orders API
src/app/api/pedidos/route.js - Order History
src/app/meus-pedidos/page.jsx
Accounts and Reviews
- Login
src/app/login/_components/LoginForm.jsx - Registration
src/app/sign-up/_components/SignUpForm.jsx - Authentication
src/app/api/auth/[...nextauth]/route.js - Customer Profile
src/app/perfil/_components/InfosUsuario.jsx - Comments API
src/app/api/comentarios/route.js
Product Management
- Product Admin
src/app/admin/adicionar-produtos/page.jsx - Image Upload API
src/app/api/upload/route.js
Data and Auth
- Users API
src/app/api/usuarios/route.js - Session User Lookup
src/utils/getUsuarioServerSide.js - PostgreSQL
src/lib/db.js
Other components
- Shopper
Connections 15
- Shopper → Storefront Pages: browses products
- Shopper → Product Admin: manages products
- Product Cards → Cart State: adds item
src/components/produtos/CardProduto.jsx - Cart Page → Cart State: uses cart state
src/app/carrinho/_components/ClientComponent.jsx - Cart Items API → Session User Lookup: gets user
src/app/api/itens-carrinho/route.js - Cart Items API → PostgreSQL: queries cart and products
src/app/api/itens-carrinho/route.js - Product Catalog API → PostgreSQL: queries products
src/app/api/produtos/route.js - Orders API → Session User Lookup: gets user
src/app/api/pedidos/route.js - Orders API → PostgreSQL: writes order transaction
src/app/api/pedidos/route.js - Comments API → Session User Lookup: gets user
src/app/api/comentarios/route.js - Comments API → PostgreSQL: reads and writes comments
src/app/api/comentarios/route.js - Authentication → PostgreSQL: reads and creates accounts
src/app/api/auth/[...nextauth]/route.js - Users API → PostgreSQL: reads and creates users
src/app/api/usuarios/route.js - Session User Lookup → Authentication: reads session config
src/utils/getUsuarioServerSide.js - Session User Lookup → Users API: fetches user record
src/utils/getUsuarioServerSide.js