<commit_before># learn-node
Node.js Express Mongodb

# Node.js quick start examples
Date: June 14, 2015

## A static files combainer server
We use this server combain a few static JS or CSS files
eg,
  combain  /foo/bar.js,foo/baz.js
  
### Design
 ``` 
             +---------+   +-----------+   +----------+
  request -->|  parse  |-->|  combine  |-->|  output  |--> response
             +---------+   +-----------+   +----------+
```			 
### Run
Sever:
node server.js config.json

Browser:
http://localhost:8081/foo/??bar.js,baz.js

###Result
```var fs = require('fs');
var express = require('express');
var mongoose = require('mongoose');
var bunyan = require('bunyan');var config = JSON.parse(fs.readFileSync('./config.json', 'utf8'));
var routes = require('./routes');
```<commit_msg>modify README.md format<commit_after># learn-node
Node.js Express Mongodb

# Node.js quick start examples
Date: June 14, 2015

## A static files combainer server
We use this server combain a few static JS or CSS files
eg,
  combain  /foo/bar.js,foo/baz.js
  
### Design
 ``` 
             +---------+   +-----------+   +----------+
  request -->|  parse  |-->|  combine  |-->|  output  |--> response
             +---------+   +-----------+   +----------+
```			 
### Run
Sever:
node server.js config.json

Browser:
http://localhost:8081/foo/??bar.js,baz.js

###Result
```var fs = require('fs');
> var express = require('express');
> var mongoose = require('mongoose');
> var bunyan = require('bunyan');var config = JSON.parse(fs.readFileSync('./config.json', 'utf8'));
> var routes = require('./routes');
```
{'fraction_non_alphanumeric': 0.244375, 'fraction_numerical': 0.01375, 'mean_word_length': 2.3354166666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, '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': '5464016', 'n_tokens_mistral': 543, 'n_tokens_neox': 508, 'n_words': 132}