What problem does it solve?
Migrate frontend API contracts from legacy Vue2 contexts to Alova + TypeScript, enabling a unified, type-safe interface layer that works across Nitro and Vite mock runtimes while preserving old API paths.
Core Features & Use Cases
- Migration guidance from Vue2/Vue context to Alova + TS with shared server modules (repository.ts, endpoints.ts) and zero disruption to existing paths.
- End-to-end alignment of front-end API definitions, back-end repository and endpoints, and mock wrappers to ensure consistent behavior across both H5 mock and Nitro runtimes.
- Real-world use: refactoring an module's API surface, updating types, and validating against existing mocks and routes.
Quick Start
Migrate a single module end-to-end by updating src/api/{module}.ts and aligning server/modules/{module}/repository.ts and endpoints.ts.