<commit_before># Angular Mock Backend
[![Build Status](https://snap-ci.com/vinkaga/angular-mock-backend/branch/master/build_image)](https://snap-ci.com/vinkaga/angular-mock-backend/branch/master)

Angular Mock Backend is

1. An [AngularJS](https://github.com/angular/angular.js) module to mock some (or all) server requests (optionally with delay) for backend-less development.
2. A [Protractor](https://github.com/angular/protractor) module to help test client by mocking some (or all) server requests (optionally with delay).

This module provides functionality somewhat similar to that provided by [ngMockE2E $httpBackend](https://docs.angularjs.org/api/ngMockE2E/service/$httpBackend). But it does not use [ngMockE2E $httpBackend](https://docs.angularjs.org/api/ngMockE2E/service/$httpBackend) for its implementation.
## Installation
```sh
npm install angular-mock-backend --save-dev
bower install angular-mock-backend --save-dev
```
## Example
### Backend-less Development<commit_msg>Added Coveralls badge<commit_after># Angular Mock Backend
[![Build Status](https://snap-ci.com/vinkaga/angular-mock-backend/branch/master/build_image)](https://snap-ci.com/vinkaga/angular-mock-backend/branch/master) [![Coverage Status](https://coveralls.io/repos/vinkaga/angular-mock-backend/badge.svg?branch=master&service=github)](https://coveralls.io/github/vinkaga/angular-mock-backend?branch=master)


Angular Mock Backend is

1. An [AngularJS](https://github.com/angular/angular.js) module to mock some (or all) server requests (optionally with delay) for backend-less development.
2. A [Protractor](https://github.com/angular/protractor) module to help test client by mocking some (or all) server requests (optionally with delay).

This module provides functionality somewhat similar to that provided by [ngMockE2E $httpBackend](https://docs.angularjs.org/api/ngMockE2E/service/$httpBackend). But it does not use [ngMockE2E $httpBackend](https://docs.angularjs.org/api/ngMockE2E/service/$httpBackend) for its implementation.
## Installation
```sh
npm install angular-mock-backend --save-dev
bower install angular-mock-backend --save-dev
```
## Example
### Backend-less Development
{'fraction_non_alphanumeric': 0.13189338235294118, 'fraction_numerical': 0.0055147058823529415, 'mean_word_length': 5.637195121951219, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5021674', 'n_tokens_mistral': 660, 'n_tokens_neox': 646, 'n_words': 163}