What problem does it solve?
This Skill helps developers understand and effectively use the core concepts of the Egg.js framework, including its module system, dependency injection, and object lifecycle management.
Core Features & Use Cases
- Module System: Learn how to define and organize code into modules.
- Dependency Injection: Understand and utilize
@Inject, @SingletonProto, and @ContextProto decorators.
- Object Lifecycle: Manage the creation and destruction of objects throughout the application's life.
- Use Case: A new developer joining an Egg.js project can use this Skill to quickly grasp how services are structured, how they depend on each other, and how to correctly implement new features within the framework's architecture.
Quick Start
Explain how to define a new module in Egg.js.