<commit_before>grunt-connect-page
==================
<commit_msg>Adding details to readme<commit_after>grunt-connect-page
==================

Simple example/template to demonstrate how to quickly setup a server for your static content.  The server is <a href="https://github.com/senchalabs/connect">connect</a> and the grunt task is <a href="https://github.com/gruntjs/grunt-contrib-connect">grunt-contrib-connect</a>.

### How start the server

```
$ git clone https://github.com/MiguelCastillo/grunt-connect-page
$ npm install
$ npm start
```

And in the browser, go to <a target="_blank" href="http://localhost:8989">http://localhost:8989</a>


### Setting this up from scratch

- Setup your package.json

```
$ npm init
$ npm install grunt --save-dev
$ npm install grunt-contrib-connect --save-dev
```

- Setup your <a href="https://github.com/MiguelCastillo/grunt-connect-page/blob/master/Gruntfile.js">Gruntfile.js</a>. Below is the important part from the gruntfile.js.  NOTE: `keepalive` flag is to keep the server running.
```javascript
connect: {
  keepalive: {
    options: {
      port: 8989,
      host: "*",
      keepalive: true
    }
  }
}
```

- Startup the server via grunt
```
$ grunt start
```

{'fraction_non_alphanumeric': 0.1672158154859967, 'fraction_numerical': 0.009884678747940691, 'mean_word_length': 4.04149377593361, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 4, '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': '6128867', 'n_tokens_mistral': 410, 'n_tokens_neox': 384, 'n_words': 106}