1.1.6 • Published 12 months ago

api-mocking-tool v1.1.6

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

API Mocking Tool

Quick Start

Welcome to the API Mocking Tool! This tool helps you create and manage mock APIs to simplify frontend development and testing.

For comprehensive guides, advanced usage, and further details, visit our full documentation:

API Mocking Tool Documentation or Github Issues

Installation

To get started quickly, you can install the API Mocking Tool either globally or locally.

  • Global Installation:
`npm install -g api-mocking-tool`
  • Local Installation:

    1. Create a new project directory and navigate into it:
    ```mkdir my-mock-api```
    ```cd my-mock-api```

2.  Initialize a new Node.js project:

    
  

    `npm init -y`

3.  Install the tool locally:


    `npm install api-mocking-tool`

4.  Add a start script to your `package.json`:
        `{
          "scripts": {
            "start": "mock-server"
          }
        }` 

Setup

  1. Create a mocks.json file in your project root to define your mock endpoints and responses.

  2. Start the mock server:

    • Global Installation:
    `npx mock-server`

-   **Local Installation**:


    `npm start`

Example

For a detailed example of setting up your mocks.json file and making requests, check out our full documentation.

1.1.6

12 months ago

1.1.5

12 months ago

1.1.4

12 months ago

1.1.3

12 months ago

1.1.2

12 months ago

1.1.1

12 months ago

1.1.0

12 months ago

1.0.21

12 months ago

1.0.20

12 months ago

1.0.12

12 months ago

1.0.11

12 months ago

1.0.10

12 months ago

1.0.9

12 months ago

1.0.8

12 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago