Coder Social home page Coder Social logo

fig-mock's Introduction

一 feacher:

只需简单配好必要的字段, 不用写一句后端代码,系统会自动生成路由, 前端mock从未如此轻松~~

二 只需三步,启动mock服务:

1- npm i

安装相关依赖

2- 配置config.js文件

找到最外层的config.js文件,配置相关字段

3- npm run mock

启动mock服务,服务开启后,就可以正常体验mock服务啦~~

三 高级配置:

完成前面两步后,系统会自动生成路由,对应处理函数,以及json数据库文件, 如果想定制路由, 可以直接在router文件中修改相应的路由文件

四 原理

结合mockjs和express搭建而成, mockjs负责模拟静态数据, express负责模拟后台服务,处理前端响应,操作json文件数据,并返回相应结果

五 联系

有任何问题欢迎联系, 微信:wcheng5200, 邮箱:[email protected]

fig-mock's People

Contributors

wcc0077 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.