Giter VIP home page Giter VIP logo

mp-base's Introduction

mp-base

本项目默认封装了以下功能:

  • http 请求方法
  • 接口调试工具
  • UI库
  • 通用工具函数

启动

  • 使用 hbuilderx 启动本项目
  • 运行命令 cnpm i 安装相关工具
  • 运行命令 npm run mockm 启动接口调试工具

注: 使用 vscode/eslint/EditorConfig 可自动进行代码风格统一.

目录结构

│  mm.config.js // 接口调试工具配置文件
│
├─common
│  config.js // 业务配置, 例如请求地址前缀
│  http.api.js // api 编写的地方
│  http.interceptor.js // api 拦截器
│  tool.js // 通用工具函数

其他文件说明请参考 目录结构.

技术栈

mp-base's People

Contributors

wll8 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.