project-overview.mdc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ---
  2. description:
  3. globs:
  4. alwaysApply: true
  5. ---
  6. # CGTM Project Overview
  7. ## What is CGTM?
  8. CGTM (Code Generation Template Market - 代码生成模板市场) is an online platform that provides various code generation templates to enhance developer experience. It's designed to work with the PIGX framework for rapid application development.
  9. ## Project Purpose
  10. - Provide rich and diverse code generation templates
  11. - Enable easy template updates through "online update" functionality
  12. - Support community contributions via GitHub pull requests
  13. - Accelerate development workflow with pre-built templates
  14. ## Core Technologies
  15. - **Template Engine**: Apache Velocity
  16. - **Backend**: Java with Spring Boot
  17. - **Frontend**: Vue.js with TypeScript
  18. - **Database Support**: Multiple database types through dynamic configuration
  19. - **Architecture**: Microservices with modular design
  20. ## Template Categories
  21. 1. **Single Table CRUD** (单表增删改查)
  22. - Complete CRUD operations for single entities
  23. - Includes Controller, Service, Mapper, Entity, and Vue components
  24. 2. **Master-Detail CRUD** (主子表增删改查)
  25. - Parent-child relationship management
  26. - Complex form handling with nested data
  27. 3. **VForm Templates**
  28. - Visual form designer integration
  29. - JSON-based form configuration
  30. ## Key Features
  31. - Multi-tenant support (`isTenant` flag)
  32. - Internationalization (i18n) ready
  33. - Auto-fill fields support
  34. - Logical deletion support
  35. - Dynamic permission and menu generation
  36. - Modern UI with best UX practices
  37. ## License
  38. AGPL 3.0 - Free for PIGX users only