<commit_before># falcor-server<commit_msg>added readme<commit_after># falcor-express
Server middleware for falcor-express

Working usage example of the basic repro in example/

## Usage
Minimalistic example

```
var FalcorServer = require('falcor-express');
var express = require('express');
var app = express();

var TestRouter = <your router here>;
var _TestRouter = new TestRouter();

var app = new Hapi.Server();
app.connection({
    host: "localhost",
    port: 9090
});

app.use('/model.json', FalcorServer.expressMiddleware(_TestRouter));

app.use(express.static('.'));

var server = app.listen(9090, function(err) {
    if (err) {
        console.error(err);
        return;
    }
    console.log("navigate to http://localhost:9090")
});

```

## Development
To develop this server further run
```
clone repo
npm install
```
then go in the test example folder, copy ``falcor.browser.js`` from your ``falcor/dist`` and run
```
npm install
npm start
```
You might want to symlink falcor-express inside your node_modules to the local version rather than the github/npm one.

Please run linting before pushing on repo
```
npm run lint
```

## Todo
 * Create mocha test for regression and development instad of using example  
 * Test post parameters once set/call are developed  
 
{'fraction_non_alphanumeric': 0.11750972762645914, 'fraction_numerical': 0.00933852140077821, 'mean_word_length': 4.270491803278689, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7089276', 'n_tokens_mistral': 403, 'n_tokens_neox': 375, 'n_words': 137}