> For the complete documentation index, see [llms.txt](https://fredericheem.gitbook.io/starhackit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fredericheem.gitbook.io/starhackit/backend/apimodel/apimocking.md).

# Api Mocking

Given the RAML describing of an API, [raml-mocker-server](https://github.com/dmitrisweb/raml-mocker-server) will start responding the web client with data that comply with the API.

To start the mock server, run this npm script:

```
# npm run mocker
```

This script launches [mocker-server.js](https://github.com/FredericHeem/starhackit/tree/7874885f1eba0a80a1af474655d4187aedb68d6e/server/docs/scripts/mocker-server.js), modify it to eventually change the http port and the `raml` files to select.
