# MockM - Frontend & Backend Development Tool ๐
๐ Quick Start ย |ย ๐ก Examples ย |ย ๐ Documentation
One command to become an API server - An integrated tool for mocking, proxying, and debugging frontend-backend collaboration
# โจ Core Advantages
๐ฏ Zero Configuration - Complete API server with just 2 commands
๐ Smart Proxy - One-click solution for CORS issues without code changes
๐ Data Generation - Built-in MockJS for realistic test data
๐ญ RESTful API - Auto-generated CRUD interfaces with search & pagination
๐ Remote Debugging - Built-in tunneling for instant debug link sharing
๐ฑ Visual Management - Web UI interface with user-friendly operations
โก Hot Reload - Real-time configuration updates for smooth development
# ๐ 30-Second Setup
# Install
npm i -g mockm
# Start (automatically creates example config)
mm --config
Try it now:
- ๐ API Service: http://127.0.0.1:9000/api/1 (opens new window)
- ๐ Management Interface: http://127.0.0.1:9005 (opens new window)
- ๐ง Config File: Check generated
mm.config.js
# ๐ฏ Typical Use Cases
# Frontend Developers
- CORS Proxy - One-line config solves development CORS issues
- Mock Data - Start development without waiting for backend
- API Debugging - Visual interface with complete request history
# Backend Developers
- API Documentation - Auto-generated, easy frontend integration
- Parameter Sharing - One-click debug link generation, no more screenshots
- Interface Testing - Built-in testing tools supporting various scenarios
# Team Collaboration
- Remote Debugging - Network tunneling for instant colleague sharing
- Version Control - File-based configuration, Git-friendly
- Environment Switching - Flexible multi-environment configuration
# ๐ Documentation Navigation
# ๐ Getting Started
- ๐ Quick Start (opens new window) - 5-minute guide
- ๐ก Examples (opens new window) - Common scenario solutions
- ๐ Web Interface (opens new window) - Visual operation guide
# ๐ง Advanced Configuration
- ๐ Configuration Options (opens new window) - Complete config reference
- โ๏ธ CLI Parameters (opens new window) - Command-line usage
- ๐ File Structure (opens new window) - Data file descriptions
# ๐ ๏ธ Development
- ๐งช Test Cases (opens new window) - Feature demonstrations
- ๐๏ธ Development Docs (opens new window) - Contribution guide
# ๐ Related Projects
Project | Description |
---|---|
๐จ Taroify (opens new window) | Taro version of mobile component library Vant for mini-program development |
๐ฏ wot-design-uni (opens new window) | Vue3+TS based uni-app component library with 70+ high-quality components |
If you have a project that needs to be showcased on this page, please let me know.