<commit_before>[![NBusy](https://raw.github.com/nbusy/nbusy/master/client/images/nbusy_large.png)](http://nbusy.com/)

[![Build Status](https://travis-ci.org/nbusy/nbusy.svg?branch=master)](https://travis-ci.org/nbusy/nbusy)
[![GoDoc](https://godoc.org/github.com/nbusy/nbusy?status.svg)](https://godoc.org/github.com/nbusy/nbusy)

NBusy messaging server for web and mobile clients. Built on [Titan](https://github.com/titan-x) messaging server framework.

## Tech Stack

For technological and architectural overview, have a look at this [blog post](http://www.soygul.com/projects/nbusy/).

## Docker

To create and run a Docker build:

```bash
docker build -t nbusy .
```

## License

[Apache License 2.0](LICENSE)<commit_msg>expand docker instructions<commit_after>[![NBusy](https://raw.github.com/nbusy/nbusy/master/client/images/nbusy_large.png)](http://nbusy.com/)

[![Build Status](https://travis-ci.org/nbusy/nbusy.svg?branch=master)](https://travis-ci.org/nbusy/nbusy)
[![GoDoc](https://godoc.org/github.com/nbusy/nbusy?status.svg)](https://godoc.org/github.com/nbusy/nbusy)

NBusy messaging server for web and mobile clients. Built on [Titan](https://github.com/titan-x) messaging server framework.

## Tech Stack

For technological and architectural overview, have a look at this [blog post](http://www.soygul.com/projects/nbusy/).

## Docker

To build and run a Docker container:

```bash
docker build -t nbusy .
docker run --publish 3000:3000 --name nbusy --rm nbusy
```

The --publish flag tells docker to publish the container's port 8080 on the external port 6060.
The --name flag gives our container a predictable name to make it easier to work with.
The --rm flag tells docker to remove the container image when the outyet server exits.

Now you can browse to the [WebSocket Test Page](http://www.websocket.org/echo.html) and type in `ws://192.168.99.100:3000` (you might need to replace the IP with the IP of you Docker host depending on your system).

One you're done, shut down the running container from another terminal window:

```bash
docker stop nbusy
```

## License

[Apache License 2.0](LICENSE)
{'fraction_non_alphanumeric': 0.1436646255299105, 'fraction_numerical': 0.016486104569006125, 'mean_word_length': 4.545691906005222, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 1, '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': '6825381', 'n_tokens_mistral': 769, 'n_tokens_neox': 704, 'n_words': 201}