How yimiaoopen/nodcloud-erp-v6 works
Project Type and Purpose
• This is a full-stack web ERP system (“点可云ERP-开源进销存系统”) built on the ThinkPHP MVC framework (backend) and LayUI/jQuery (frontend). It provides modules for procurement, sales, inventory, finance, reports, plus a plug-in/addons mechanism.
File Structure Analysis
• Top-level:
• index.php (ThinkPHP front controller)
• application/ (main MVC app: config, controllers, models, views, validators)
• thinkphp/ (framework core library)
• addons/ (plugin modules, each with its own MVC structure and config)
• skin/ (static assets: CSS, JS, fonts, images)
• install/ (installation wizard: PHP scripts, DB schema templates)
• runtime/ (cache/log/temp)
• vendor/ (third-party libraries if any)
• Patterns:
• MVC in application/index
• Modular/addon MVC under addons/*
• Front controller → routing (application/route.php) → controllers
• Validation layer (application/index/validate)
• Skin folder holds all UI resources, loaded by views.
Key README Insights
• Backend: ThinkPHP
• Frontend: LayUI
• Data store: MySQL (configured in application/config.php)
• Supports multiple session/cache drivers (Redis/Memcache)
• Plugin architecture: addons loaded dynamically via config.php in each addon.