跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[程序员] 开源一个前端 mock 工具

发表于
https://github.com/MockForge/mockforge

在我之前供职于蚂蚁金服时,我们内部有一款非常实用的模拟工具,名为“bakery”。离开公司后,我发现自己非常怀念这款工具,因此决定自己动手复刻了一个简化版本。

这个工具的功能相对简单。它可以通过 Vite 或者 Webpack 进行集成。只需设置相应的环境变量,就能开开发的时候自动启动 MOCK 管理工具。

开发者可以在管理攻击编辑各个 API 的模拟结果。除了可以设置固定的返回结果外,还可以通过查询参数、请求体或路径参数进行匹配。

Mock 数据将被保存在本地代码库中,这样便于与其他开发者共享,从而提高了开发效率和协同工作的便利性。

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.