<commit_before># iojs-todo
A simple Io.js to-do application using Redis for storage.

## Deploying to a remote server
First, get a VM. Make note of its IP and access details. Make sure that port
3000 is exposed (that's the port application listens on by default).

Then, clone the Nibbler repository (`git clone https://github.com/mmalecki/nibbler`)
and run the following in `examples/iojs-todo` directory:

```sh
npm install
npm install nibbler-runner-ssh
```

to install all the dependencies including the SSH runner.

You can now deploy the application:

```sh
npm run deploy -- --runner ssh --ssh root@host
```

To make sure that it deployed properly:

```sh
curl host:3000
```

Now you can create:

```sh
curl host:3000/todo -XPOST -H'content-type: application/json' -d '{"todo": "Learn Nibbler"}'
```

and read to-do's:

```sh
curl host:3000/todo
```<commit_msg>Shorten this up since we depend on the SSH runner<commit_after># iojs-todo
A simple Io.js to-do application using Redis for storage.

## Deploying to a remote server
First, get a VM. Make note of its IP and access details. Make sure that port
3000 is exposed (that's the port application listens on by default).

Then, clone the Nibbler repository (`git clone https://github.com/mmalecki/nibbler`)
and run `npm install` in `examples/iojs-todo` directory.

You can now deploy the application:

```sh
npm run deploy -- --runner ssh --ssh root@host
```

To make sure that it deployed properly:

```sh
curl host:3000
```

Now you can create:

```sh
curl host:3000/todo -XPOST -H'content-type: application/json' -d '{"todo": "Learn Nibbler"}'
```

and read to-do's:

```sh
curl host:3000/todo
```
{'fraction_non_alphanumeric': 0.11754068716094032, 'fraction_numerical': 0.019288728149487643, 'mean_word_length': 4.15527950310559, 'pattern_counts': {'":': 2, '<': 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': '1526350', 'n_tokens_mistral': 600, 'n_tokens_neox': 524, 'n_words': 228}