<commit_before># screepsmod-mongo

## MongoDB And Redis for the Screeps Private Server

[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![CircleCI](https://circleci.com/gh/ScreepsMods/screepsmod-mongo/tree/master.svg?style=shield)](https://circleci.com/gh/ScreepsMods/screepsmod-mongo/tree/master)

### Warning: WIP, may still contain bugs

## Requirements

* nodejs 6+
* mongodb
* redis

## Installation

1. Ensure both mongodb and redis are already installed and running
2. `npm install screepsmod-mongo` inside your server's mods folder
3. Start server!
4. On first start it will import your existing db.json
5. Once done (Check the logs) restart the server
6. Done! 

## Configuration

All options and defaults are listed below

### Mongo

* host: localhost
* port: 28017
* database: screeps

### Redis<commit_msg>Fixed mongo port in README<commit_after># screepsmod-mongo

## MongoDB And Redis for the Screeps Private Server

[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![CircleCI](https://circleci.com/gh/ScreepsMods/screepsmod-mongo/tree/master.svg?style=shield)](https://circleci.com/gh/ScreepsMods/screepsmod-mongo/tree/master)

### Warning: WIP, may still contain bugs

## Requirements

* nodejs 6+
* mongodb
* redis

## Installation

1. Ensure both mongodb and redis are already installed and running
2. `npm install screepsmod-mongo` inside your server's mods folder
3. Start server!
4. On first start it will import your existing db.json
5. Once done (Check the logs) restart the server
6. Done! 

## Configuration

All options and defaults are listed below

### Mongo

* host: localhost
* port: 27017
* database: screeps

### Redis
{'fraction_non_alphanumeric': 0.11613623673925182, 'fraction_numerical': 0.01340033500837521, 'mean_word_length': 4.837133550488599, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '32923', 'n_tokens_mistral': 627, 'n_tokens_neox': 576, 'n_words': 175}