<commit_before># EmberChat

### In development
* rails api
* ember client

### About
##### This is an attempt at getting something up and running to structure future applications with

#### Coming Next
* A way to template future applications
* Figure what needs to be bootstrapped to set up a simple dev env using vagrant
 * Doing this will help figure out what server configuration this type of app will require



#### Additional Notes
* I feel this is the almost any app should be structure (separating front-end from back-end)
* This will
 * Make for easier testing
 * Faster debugging

### Setting up dev environment
* Requirements
 * [Ruby](https://www.ruby-lang.org/en/)
 * Bundler -> `$ gem install bundler`
 * [Rails](http://guides.rubyonrails.org/)
 * [Vagrant](https://www.vagrantup.com/)
 * [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
 * [Git](http://git-scm.com/)
 * [Node.js](http://nodejs.org/) (with NPM)
 * [Bower](http://bower.io/)
 * [Ember CLI](http://www.ember-cli.com/)
 * [PhantomJS](http://phantomjs.org/)
* Fork and clone

```sh
$ cd /path/to/EmberChat
# Open two terminal tabs or windows
# In the first:
$ cd emberchat.com
$ npm install && bower install
$ ember serve
# you can now find the ember side here: http://localhost:4200/

# In the second:
$ vagrant up
$ vagrant ssh
$ cd /srv/api.emberchat.com
$ bundle
$ rake db:setup db:migrate
$ rails s
# you can now find the rails side here: http://192.168.127.12:3000/admin
# log in with username: <EMAIL> password: password
# you can now find the rails routes/docs here: http://192.168.127.12:3000/documentation
```
<commit_msg>:memo: README forgot you do not need rails on host<commit_after># EmberChat

### In development
* rails api
* ember client

### About
##### This is an attempt at getting something up and running to structure future applications with

#### Coming Next
* A way to template future applications
* Figure what needs to be bootstrapped to set up a simple dev env using vagrant
 * Doing this will help figure out what server configuration this type of app will require



#### Additional Notes
* I feel this is the almost any app should be structure (separating front-end from back-end)
* This will
 * Make for easier testing
 * Faster debugging

### Setting up dev environment
* Requirements
 * [Ruby](https://www.ruby-lang.org/en/)
 * [Vagrant](https://www.vagrantup.com/)
 * [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
 * [Git](http://git-scm.com/)
 * [Node.js](http://nodejs.org/) (with NPM)
 * [Bower](http://bower.io/)
 * [Ember CLI](http://www.ember-cli.com/)
 * [PhantomJS](http://phantomjs.org/)
* Fork and clone

```sh
$ cd /path/to/EmberChat
# Open two terminal tabs or windows
# In the first:
$ cd emberchat.com
$ npm install && bower install
$ ember serve
# you can now find the ember side here: http://localhost:4200/

# In the second:
$ vagrant up
$ vagrant ssh
$ cd /srv/api.emberchat.com
$ bundle
$ rake db:setup db:migrate
$ rails s
# you can now find the rails side here: http://192.168.127.12:3000/admin
# log in with username: <EMAIL> password: password
# you can now find the rails routes/docs here: http://192.168.127.12:3000/documentation
```

{'fraction_non_alphanumeric': 0.1308030112923463, 'fraction_numerical': 0.02132998745294856, 'mean_word_length': 3.9750390015600625, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 6, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '581978', 'n_tokens_mistral': 1085, 'n_tokens_neox': 991, 'n_words': 364}