<commit_before># democratech API

In order not to require extensive coding resources for coding websites, democratech makes an extensive use of web services behind the scene, most notably:
* [Bime](https://bimeanalytics.com) for analytics and dashboards
* [Front](http://frontapp.com) for shared inbox
* [Wufoo](https://wufoo.com) for forms
* [Slack](https://slack.com) for communication / notifications
* [Mailchimp](https://mailchimp.com) for emailing
* [Zapier](https://zapier.com) for inter-API connections

Nevertheless, we needed a little API of our own in order to properly synchronize all those services.

The API is written in Ruby and leverages the [Grape API framework](https://github.com/ruby-grape/grape).
The Webserver used is [Unicorn](http://unicorn.bogomips.org/) (behing nginx).

Make sure you create a ```config/keys.local.rb``` file with all the necessary information (cf ```config/keys.rb```) and then launch the unicorn server with the following command:
```
bundle exec unicorn -c config/unicorn.conf.rb config/config.ru
```<commit_msg>* Updated README.md to document the use of rackup<commit_after># democratech API

In order not to require extensive coding resources for coding websites, democratech makes an extensive use of web services behind the scene, most notably:
* [Bime](https://bimeanalytics.com) for analytics and dashboards
* [Front](http://frontapp.com) for shared inbox
* [Wufoo](https://wufoo.com) for forms
* [Slack](https://slack.com) for communication / notifications
* [Mailchimp](https://mailchimp.com) for emailing
* [Zapier](https://zapier.com) for inter-API connections

Nevertheless, we needed a little API of our own in order to properly synchronize all those services.

The API is written in Ruby and leverages the [Grape API framework](https://github.com/ruby-grape/grape).
The Webserver used is [Unicorn](http://unicorn.bogomips.org/) (behing nginx).

Make sure you create a ```config/keys.local.rb``` file with all the necessary information (cf ```config/keys.rb```) and then launch the unicorn server with the following command:
```
bundle exec unicorn -c config/unicorn.conf.rb config/config.ru
```

Alternatively for development purposes, you can also just run the API with:
```
rackup config/config.ru
```
This will use the default WEBRick web server.
{'fraction_non_alphanumeric': 0.11130359462970983, 'fraction_numerical': 0.0, 'mean_word_length': 5.015625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, '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': '3122686', 'n_tokens_mistral': 684, 'n_tokens_neox': 658, 'n_words': 262}