How nyainaratolojanahary/m1p13mean-liantsiky-nyaina works
This is a MEAN marketplace for browsing products and shops, purchasing through a cart and checkout, buying tokens, and administering marketplace and mall operations. The principal customer flow is catalog browsing → cart → checkout; authenticated users also manage profiles and wallets. Admin routes cover shops, products/categories, floors and leased boxes, payment methods, users, and token requests. The sampled code confirms Express mounts the API routes, and sampled controllers delegate to services; wiring within unsampled commerce and frontend modules is not asserted.
Main entry points: app.routes.ts Client routes · models MongoDB models · controllers Request controllers · api.service.ts HTTP client
Components 20
Customer experience
- Client routes
frontend/mean-frontend/src/app/app.routes.ts - Product discovery
frontend/mean-frontend/src/app/features - Cart state
frontend/mean-frontend/src/app/core/services/cart/cart.service.ts
Identity and checkout
- Checkout
frontend/mean-frontend/src/app/features/checkout/checkout/checkout.component.ts - Profile and wallet
frontend/mean-frontend/src/app/features/profile - Token purchase
frontend/mean-frontend/src/app/features/tokens/buy-tokens/buy-tokens.component.ts - Authentication
frontend/mean-frontend/src/app/core/services/auth/auth.service.ts - HTTP client
frontend/mean-frontend/src/app/core/services/api/api.service.ts
Administration
- Admin tools
frontend/mean-frontend/src/app/features/admin
Backend API
- Express application
backend/index.js - API route modules
backend/routes - Request controllers
backend/controllers - Catalog services
backend/services/produitService.js - Category service
backend/services/categorieProduitService.js - Mall and leasing
backend/services/boxService.js - Auth service
backend/services/authService.js - Purchase and wallet
backend/services/achatService.js
Persistence
- MongoDB models
backend/models - Database connection
backend/config/db.js
Other components
- Customer
Connections 22
- Customer → Client routes: navigates
- Client routes → Product discovery: routes to
- Client routes → Checkout: routes to
- Client routes → Profile and wallet: routes to
- Client routes → Token purchase: routes to
- Client routes → Admin tools: routes to
- Product discovery → Cart state: adds items
- Customer → Cart state: manages items
- Customer → HTTP client: requests data
- Authentication → HTTP client: sends auth requests
- HTTP client → Express application: HTTP requests
- Express application → API route modules: mounts routes
- Request controllers → Catalog services: delegates
- Request controllers → Category service: delegates
- Request controllers → Mall and leasing: delegates
- Request controllers → Auth service: delegates
- Catalog services → MongoDB models: queries
- Category service → MongoDB models: queries
- Mall and leasing → MongoDB models: reads and writes
- Auth service → MongoDB models: reads and writes
- Database connection → MongoDB models: connects
- Purchase and wallet → MongoDB models: persists purchases