How senasaintkofs/sk_pos works
SKPOS is a web POS for microcommerce, with an Angular client and PHP API backed by MySQL. The main workflow is staff authentication, then sales entry: select products and a customer, build a cart, take payment, and record the sale; inventory and dashboard reporting are supporting capabilities. The application also manages products, categories, customers/users, and supplier orders. The README documents these product capabilities, but many controller and service implementations were not excerpted, so uncertain client-to-endpoint links are shown as unverified rather than asserted.
Main entry points: app.routes.ts App routes · servicios Angular API services · controlador PHP controllers · conexion.php MySQL connection
Components 23
Access and navigation
- Angular app
frontend/src/app/app.ts - App routes
frontend/src/app/app.routes.ts - Login screen
frontend/src/app/estructura/login/login.ts - User guard
frontend/src/app/guardian/validar-usuario-guard.ts - Main shell
frontend/src/app/estructura/main.ts
POS operations
- Dashboard
frontend/src/app/modulos/dashboard/dashboard.ts - Sales checkout
frontend/src/app/modulos/ventas/ventas.ts - Product catalog
frontend/src/app/modulos/productos/productos.ts - Categories
frontend/src/app/modulos/categorias/categorias.ts - Supplier orders
frontend/src/app/modulos/pedidos/pedidos.ts - Customer records
frontend/src/app/modulos/clientes/clientes.ts - User management
frontend/src/app/modulos/usuarios/usuarios.ts
PHP API and data
- API configuration
frontend/src/app/config/api.ts - Angular API services
frontend/src/app/servicios - PHP controllers
backend/controlador - CORS policy
backend/controlador/config/cors.php - Domain models
backend/modelo - Sales and detail models
backend/modelo/venta.php - Product model
backend/modelo/producto.php - User model
backend/modelo/usuario.php - MySQL connection
backend/modelo/conexion.php
Other components
- POS user
- MySQL database
Connections 30
- POS user → Login screen: signs in
README.md - Angular app → App routes: provides routes
- App routes → Login screen: routes to
frontend/src/app/app.routes.ts - App routes → Main shell: routes to
frontend/src/app/app.routes.ts - App routes → Dashboard: routes to
frontend/src/app/app.routes.ts - App routes → Sales checkout: routes to
frontend/src/app/app.routes.ts - App routes → Product catalog: routes to
frontend/src/app/app.routes.ts - App routes → Categories: routes to
frontend/src/app/app.routes.ts - App routes → Supplier orders: routes to
frontend/src/app/app.routes.ts - App routes → Customer records: routes to
frontend/src/app/app.routes.ts - App routes → User management: routes to
frontend/src/app/app.routes.ts - App routes → User guard: guards pages
frontend/src/app/app.routes.ts - Sales checkout → Angular API services: uses services
frontend/src/app/modulos/ventas/ventas.ts - Dashboard → Angular API services: uses services
frontend/src/app/modulos/dashboard/dashboard.ts - Customer records → Angular API services: uses service
frontend/src/app/modulos/clientes/clientes.ts - Product catalog → Angular API services: uses services
frontend/src/app/modulos/productos/productos.ts - Supplier orders → Angular API services: uses service
frontend/src/app/modulos/pedidos/pedidos.ts - User management → Angular API services: uses service
frontend/src/app/modulos/usuarios/usuarios.ts - Angular API services → API configuration: reads base URL
frontend/src/app/servicios/producto.ts - Angular API services → PHP controllers: calls API
- PHP controllers → CORS policy: includes policy
backend/controlador/detalleVenta.php - PHP controllers → Product model: dispatches actions
backend/controlador/producto.php - PHP controllers → User model: dispatches actions
backend/controlador/usuario.php - PHP controllers → Sales and detail models: dispatches actions
- PHP controllers → Domain models: uses domain models
backend/controlador/detalleVenta.php - PHP controllers → MySQL connection: loads connection
backend/controlador/producto.php - Product model → MySQL connection: queries through
- User model → MySQL connection: queries through
- Sales and detail models → MySQL connection: queries through
- MySQL connection → MySQL database: connects to
backend/modelo/conexion.php