api-migration

Community

Migrate APIs to Alova + TS for Nitro/Vite mock.

Authorruan-cat
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: api-migration
Download link: https://github.com/ruan-cat/11comm-app/archive/main.zip#api-migration

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.