createMockClient
For examples and tests, it is generally recommended to quickly build a mock application using createMockClient. A mock application is a clean, empty application with no plugins activated, intended solely for examples and testing.
For example:
createMockClient provides apiMock to build mock API data.
Based on createMockClient, we can quickly extend functionality through plugins. Common APIs for Plugin include:
- plugin.router: Extend routes
- plugin.engine: Frontend engine (NocoBase 2.0)
- plugin.context: Context (NocoBase 2.0)
Example 1: Add a route via the router.
We will introduce more content in subsequent chapters.

