MIT License

项目介绍

boyney123/mockit 是一个托管在 GitHub 上的开源项目,主要使用 JavaScript 编写,采用 MIT License 许可证,目前获得 1.6k 个 Star、78 次 Fork。

仓库全名
boyney123/mockit
开源许可证
MIT License
Star 数
1.6k
Fork 数
78
未关闭 Issue
63

README 摘要

MockIt: A tool to quickly create mocked APIs. Stop wasting time mocking APIs. MockIt gives you an interface to configure and create REAL mocked endpoints for your applications. Whilst you wait for APIS to be built use MockIt to talk to a real service. Donate ☕ Features: Live Reload, Chaos Engineering, Authentication, CORS and more... Read the Docs | Edit the Docs The problem When building applications you often need…

完整内容见 GitHub 原始 README 或本页 。

常见问题

mockit 用什么语言开发?

主要使用 JavaScript 编写,采用 MIT License 许可证,目前有 1.6k 个 Star。

mockit 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 mockit 的源码?

可以直接克隆仓库:git clone https://github.com/boyney123/mockit.git,默认分支为 master;安装与运行步骤见仓库 README。

mockit 最近还在维护吗?

仓库最近一次更新为 2023年4月18日,当前有 63 个未关闭 Issue;Star 数为 1.6k,可作为社区活跃度的参考。

简要分析

热度分
1741
价值分
964
活跃状态
活跃

语言占比

Dockerfile
HTML
JavaScript
SCSS
Shell

Release

README

MockIt: A tool to quickly create mocked APIs.

Stop wasting time mocking APIs. MockIt gives you an interface to configure and create REAL mocked endpoints for your applications. Whilst you wait for APIS to be built use MockIt to talk to a real service.


Travis CodeCov Netlify Status MIT License PRs Welcome All Contributors

Watch on GitHub Star on GitHub Tweet

Donate ☕


header

Features: Live Reload, Chaos Engineering, Authentication, CORS and more...

Read the Docs | Edit the Docs


The problem

When building applications you often need to interact with services. When the services are not ready to be consumed you have a few options:

  1. Mock out the response with a JSON file
  2. Create a mock service yourself
  3. Use MockIt.

This solution

This tool was designed to help developers quickly create endpoints for their applications. No need to create a server, just use docker and run this project locally. You can create, edit and manage routes to your API. Every change to the API will be reflected on the server and updated straight away.

This tool comes with a few features out the box:

  • CORS
  • Basic Authentication
  • Chaos Monkey (Unleash a monkey to take down your endpoints)

More information about how it works, its features can be found on the docs.

Read the docs and get started

Getting Started

Make sure you have docker running

git clone https://github.com/boyney123/mockit.git
cd mockit && docker-compose up --build -d

Once everything is up and running go to http://localhost:5000 to see MockIt.

For instructions on how to use MockIt please see the documentation.

Permissions

If you get error: Couldn't connect to Docker daemon at http+docker://localhost - is it running? you might need run with sudo

sudo docker-compose up --build -d

Local install and running tests

If you want to install and run the tests for all apps then you can run this script:

sh install-and-test.sh

If you have any problems with permissions you might need to chmod the file

chmod +x install-and-test.sh && ./install-and-test.sh

Viewing the dashboard, server and API

Once Docker is running you have three applications running on the machine.

  1. The client: http://localhost:5000
  2. The client-server: http://localhost:4000
  3. The MockIt API (this is the server that runs your API): http://localhost:3000

If you want to view the dashboard to get started go to http://localhost:5000.

If you want to interact with your new API go to http://localhost:3000.

For example, if you have a /user route setup, go to http://localhost:3000/user to view the data.

Tools

Documentation

Testing

Contributing

If you have any questions, features or issues please raise any issue or pull requests you like.

Donating

If you find this tool useful, feel free to buy me a ☕ 👍

Buy a drink

License

MIT.

Contributors

Thanks goes to these wonderful people (emoji key):

David Boyne
David Boyne

💻 📖 🎨 🤔 👀 🔧
Liran Tal
Liran Tal

🛡️
Hongarc
Hongarc

📖
Hugo Locurcio
Hugo Locurcio

💻
Andrew Hall
Andrew Hall

📖
Peter Grainger
Peter Grainger

📖
Ben
Ben

💻
MCRayRay
MCRayRay

💻
Fred Bricon
Fred Bricon

💻
fliu2476
fliu2476

🐛
David Esposito
David Esposito

📖
Mickaël
Mickaël

📖
José Carréra Alvares Neto
José Carréra Alvares Neto

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

评论

暂无评论