How hugo1917/automatizapyme-fv works
AutomatizaPyme is a locally hosted business-management system. Its main user workflow is staff using the web interface to manage products and inventory, record sales or customer orders, and review business activity; the README also documents customer loyalty, campaigns, analytics, integrations, and offline sales. The server starts the application and database, while a worker processes queued events and scheduled tasks. Edges are limited to relationships shown in excerpts, the source index, or README; uninspected module internals are not inferred.
Main entry points: app.js HTTP application · worker.js Background worker · marketing.js Campaigns · server.js Local server
Components 27
User interface
- Web interface
public/js/main.js - Offline sales
public/js/offline.js - Online shop
public/tienda.js - Public API
src/api.js
Business operations
- Inventory
src/inventory.js - Sales and orders
src/orders.js - Pricing
src/pricing.js - Stock replenishment
src/replenish.js - Returns
src/returns.js - Business operations
src/operacion.js
Customer engagement
- Customer CRM
src/crm.js - Loyalty and coupons
src/loyalty.js - Campaigns
src/marketing.js - WhatsApp messaging
src/whatsapp.js
Analytics and finance
- Analytics
src/analytics.js - Demand forecast
src/forecast.js - Accounting
src/accounting.js - Payment links
src/payments.js - Invoicing
src/invoicing.js
Runtime and storage
- HTTP application
src/app.js - Local server
src/server.js - Tenant database
src/db.js - Authentication
src/auth.js - Role permissions
src/permissions.js - Event queue
src/outbox.js - Background worker
src/worker.js
Other components
- Business staff
Connections 34
- Business staff → Web interface: uses
README.md - Business staff → Online shop: places orders
README.md - Web interface → HTTP application: sends requests
README.md - Offline sales → HTTP application: syncs sales
- Local server → HTTP application: starts
src/server.js - Local server → Tenant database: opens
src/server.js - Local server → Background worker: starts
src/server.js - HTTP application → Tenant database: queries
src/app.js - HTTP application → Authentication: hashes PIN
src/app.js - HTTP application → Role permissions: checks roles
src/app.js - HTTP application → Event queue: emits events
src/app.js - Sales and orders → Event queue: emits events
src/orders.js - Sales and orders → Loyalty and coupons: applies coupons
src/orders.js - Customer CRM → Loyalty and coupons: uses rules
src/crm.js - Campaigns → Customer CRM: reads segments
src/marketing.js - Background worker → Event queue: processes events
src/worker.js - Background worker → Campaigns: runs campaigns
src/worker.js - Background worker → Analytics: loads handlers
src/worker.js - Background worker → Demand forecast: runs forecast
src/worker.js - Background worker → Payment links: expires payments
src/worker.js - Background worker → WhatsApp messaging: sends notices
src/worker.js - Campaigns → WhatsApp messaging: sends campaigns
src/marketing.js - HTTP application → Inventory: routes operations
src/app.js - HTTP application → Sales and orders: routes sales
src/app.js - HTTP application → Customer CRM: routes customers
src/app.js - HTTP application → Campaigns: routes campaigns
src/app.js - HTTP application → Returns: routes returns
src/app.js - HTTP application → Business operations: routes operations
src/app.js - HTTP application → Pricing: routes pricing
src/app.js - HTTP application → Stock replenishment: routes replenishment
src/app.js - HTTP application → Public API: exposes API
src/app.js - HTTP application → Accounting: provides accounting
src/app.js - HTTP application → Invoicing: provides invoicing
src/app.js - HTTP application → Payment links: provides payments
src/app.js