<commit_before># Firefox Accounts DB Server, Memory Backend

Memory backend (for testing) for the [fxa-auth-db-server](https://github.com/mozilla/fxa-auth-db-server/).

Currently this is a work in progress so docs will appear here soon.

## License

MPL 2.0<commit_msg>Address some review comments in #12<commit_after># Firefox Accounts DB Server, Memory Backend

Memory backend (used in testing) for the [fxa-auth-db-server](https://github.com/mozilla/fxa-auth-db-server/).

## Prerequisites

* node 0.10.x or higher
* npm

## Configuration ##

No configuration is usually needed for this module, but you may overwrite values should you
need to. If you then set your `NODE_ENV`, then the file `config/$NODE_ENV.json` will be read in
as part of loading configuration:

```
export NODE_ENV=dev
```

In `config/config.js` you can see a set of defaults for various config options. Go take a look and
then create a new local file called `config/dev.js`. This will contain a set of values to override
the defaults. For example, if want to run on port 8080 instead of port 8000, try this:

```json
{
  "port": 8080
}
```

The same config is used by the main server as shown below.

## Starting the Server ##

Once the database has been created and patched, you can start the server (keep the same `NODE_ENV`
as you had earlier):

```sh
npm start
```

Once this has started up, it will be listening on `locahost:8000` (or whatever port you have
configured in your local config file).

## License

MPL 2.0
{'fraction_non_alphanumeric': 0.09018036072144289, 'fraction_numerical': 0.016700066800267203, 'mean_word_length': 4.13013698630137, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4907044', 'n_tokens_mistral': 474, 'n_tokens_neox': 437, 'n_words': 213}