<commit_before># Game On! 

[![Codacy Badge](https://api.codacy.com/project/badge/grade/0635f617e5d2455ca24ba2fe5873a1ec)](https://www.codacy.com/app/gameontext/gameon-mediator)

Game On! is a both a sample application, and throwback text adventure.


## Prereq

* gradle v2.7

## Build & development

Run live in WDT
Run `gradle build` to build the final server package for deployment.

## Testing

Gradle integration should mean running e2e tests for JS and Java app in one go (not there yet)

## Docker

To build a Docker image for this app/service, execute the following:

```
gradle buildImage
```

Or, if you don't have gradle, then:

```
./gradlew buildImage
```

### Interactive Run

```
docker run -it -p 9443:9443 --env-file=./dockerrc --name gameon-mediator gameon-mediator bash
```

Then, you can start the server with 
```
/opt/ibm/wlp/bin/server run defaultServer
```

### Daemon Run

```
docker run -d -p 9443:9443 --env-file=./dockerrc --name gameon-mediator gameon-mediator
```

### Stop

```
docker stop gameon-mediator ; docker rm gameon-mediator
```

### Restart Daemon

```
docker stop gameon-mediator ; docker rm gameon-mediator; docker run -d -p 9443:9443 --env-file=./dockerrc --name gameon-mediator gameon-mediator
```
<commit_msg>Match format and link to gitbook.<commit_after># Game On! Mediator Service

[![Codacy Badge](https://api.codacy.com/project/badge/grade/0635f617e5d2455ca24ba2fe5873a1ec)](https://www.codacy.com/app/gameontext/gameon-mediator)

See the mediator service [information page](https://gameontext.gitbooks.io/gameon-gitbook/content/microservices/mediator.html) in the Game On! Docs for more information on how to use this service.
{'fraction_non_alphanumeric': 0.12864800476474092, 'fraction_numerical': 0.039904705181655745, 'mean_word_length': 4.36741214057508, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, 'lorem ipsum': 0, 'www.': 2, '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': '7069759', 'n_tokens_mistral': 646, 'n_tokens_neox': 571, 'n_words': 168}