Git Product home page Git Product logo

venus-mock's Introduction

Venus Mock

介绍

Venus Mock 是个用来 mock api 的应用,初衷是拿来练手 nodejstypescript

项目介绍

项目按功能可以分为两个部分,一个是在src/app目录下基于Vue的前端SPA应用,其他则为基于Koa2的后端。

现在能干啥

  • 能够mock数据

准备干点啥

  • 接入Swagger,实现导入并mock
  • 测试指定项目下或者域名下的所有api是否有效,且对返回数据进行校验
  • 想到再写

启动

服务端

安装依赖

npm i

启动服务

npm run devServer

注意:如果当前环境自己上了梯子,那么记得关了梯子,不然代理不会生效。

客户端

安装依赖

npm i

启动服务

npm run devClient

打包

npm run dist

然后自己到dist目录用pm2跑起来

venus-mock's People

Stargazers

 avatar

Watchers

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