api-mocking-tool v1.1.6
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:
- 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
Create a
mocks.json
file in your project root to define your mock endpoints and responses.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.
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago