How pronoy999/petcoset works
Petcoset is a pet-care marketplace backed by an API and database, with separate customer/vendor and administrator Angular frontends. The customer app exposes service discovery and booking-oriented service forms, profiles, partner registration, subscriptions, and payment; the admin app provides login, dashboard, and customer management. The sampled backend shows HTTP request parsing, token validation, handler dispatch, stored-procedure access, and service search/registration. Many domain modules are present in the tree or constants but were not sampled, so their internal calls are not inferred.
Main entry points: Handlers Domain Handlers · src/app Marketplace App · src/app Admin Console · server.js Petcoset API
Components 26
Customer Marketplace
- Marketplace App
frontend/src/app - Authentication
frontend/src/app/authentication.service.ts - Service Forms
frontend/src/app/main/manage-customer-service - Profiles
frontend/src/app/main/users - Marketplace Pages
frontend/src/app/main
Admin Console
- Admin Console
frontend_admin/src/app - Admin Authentication
frontend_admin/src/app/authentication.service.ts - Customer Management
frontend_admin/src/app/main/customer - Dashboard
frontend_admin/src/app/main/dashboard
API Runtime
- Petcoset API
server/src/Helpers/server.js - Route Dispatch
server/src/Helpers/router.js - Domain Handlers
server/src/Handlers
Marketplace Domain
- Authentication
server/src/CoreServices/authentication.js - Bookings
server/src/CoreServices/booking.js - Services
server/src/CoreServices/service.js - Customers and Vendors
server/src/CoreServices - Payments and Subscriptions
server/src/CoreServices - Catalog and Locations
server/src/CoreServices - Service Entity
server/src/Entity/service.js
Persistence and Support
- MySQL Database
server/src/Services/databaseService.js - Query Generator
server/src/Services/queryGenerator.js - Token Validation
server/src/Helpers/validators.js - Notifications
server/src/Helpers/notificationManager.js
Other components
- Customer or Vendor
- Administrator
- AWS SNS and SES
Connections 24
- Customer or Vendor → Marketplace App: uses
- Administrator → Admin Console: uses
- Marketplace App → Authentication: authenticates
- Marketplace App → Service Forms: offers
frontend/src/app/main/manage-customer-service/manage-customer-service.module.ts - Marketplace App → Profiles: offers
- Marketplace App → Marketplace Pages: offers
frontend/src/app/main/main.module.ts - Admin Console → Admin Authentication: authenticates
frontend_admin/src/app/auth/login/login.component.ts - Admin Console → Customer Management: offers
- Admin Console → Dashboard: offers
- Admin Authentication → Petcoset API: sends HTTP requests
frontend_admin/src/app/authentication.service.ts - Petcoset API → Route Dispatch: gets route
server/src/Helpers/server.js - Route Dispatch → Domain Handlers: resolves handlers
server/src/Helpers/router.js - Petcoset API → Token Validation: validates token
server/src/Helpers/server.js - Petcoset API → Domain Handlers: dispatches request
server/src/Helpers/server.js - Domain Handlers → Authentication: delegates to
- Domain Handlers → Bookings: delegates to
- Domain Handlers → Services: delegates to
- Domain Handlers → Customers and Vendors: delegates to
- Domain Handlers → Payments and Subscriptions: delegates to
- Domain Handlers → Catalog and Locations: delegates to
- Services → Service Entity: uses
server/src/CoreServices/service.js - Service Entity → MySQL Database: runs procedures
server/src/Entity/service.js - MySQL Database → Query Generator: generates procedure SQL
server/src/Services/databaseService.js - Notifications → AWS SNS and SES: sends messages
server/src/Helpers/notificationManager.js