<commit_before>mocKr
=====

A tool to easily mock an existing API.<commit_msg>Update README.<commit_after># mocKr

A tool to easily mock an existing API. It's an experimental tool not yet ready to be used. I'm working for that!

## How does it work?

mocKr is a webapp which is able to run some child processes to proxy or mock an existing API.

The proxy will record everything which passing through it and the mock will use this data to return exactly the same results, according HTTP verb, status, query parameters, etc.

mocKr uses a SQLite database to store data and spawn in-memory databases for mocking.

## Features

* Save query and response of API(s)
* Mock them exactly with the same results

## Features in the pipe
* Customize queries by updating the response, the status code, the delay, etc. in order to test your app with some unexpected scenarios
* Use the webapp to have nicer logs and to keep track of the history
* Use the mocKr own api to manipule it in your code

## Installation

* clone this repository
* cd app
* npm install
* gulp install
* ./gulp build
* ./gulp serve

Go to localhost:3000
{'fraction_non_alphanumeric': 0.05197132616487455, 'fraction_numerical': 0.0035842293906810036, 'mean_word_length': 4.031531531531532, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1235799', 'n_tokens_mistral': 311, 'n_tokens_neox': 299, 'n_words': 181}