<commit_before># ireul-web

[![Build Status](https://travis-ci.org/gyng/ireul-web.svg)](https://travis-ci.org/gyng/ireul-web)

Rails (with React) client for [Ireul](https://github.com/infinityb/ireul/), a radio backend.

![Screenshot](http://i.imgur.com/SgSDlBG.png)

## Dev setup
1. [Install ImageMagick](http://www.imagemagick.org/index.php)
2. Clone
3. `bundle update`
4. `bundle install`
5. `rake db:seed`
6. Configure `config/ireul.yml` with Ireul server url/port
7. `bundle exec rails server`
8. `rails runner script/create_user.rb`

## Features
* Song database (48kHz OGG)
* Song requests with cooldowns
* Frosted background images for each song
* Cool interface

## Notes and useful commands
* Login at `http://example.com/login`
* `rake db:fixtures:dump` dumps existing DB as fixtures
* `rails runner script/ingest.rb`
* `Gemfile.lock` is in `.gitignore` due to cross-platform issues [1](https://github.com/bundler/bundler-features/issues/4). Also helps with running on Travis CI as local gems are used in this app.

### Test
`rake test`

### Windows
* Ruby22 + bcrypt — [1](https://github.com/codahale/bcrypt-ruby/issues/116), [2](https://www.alib.jp/entries/bcrypt_ext_load_error_on_ruby21x), make sure `git`, DevKit `dk/bin`, `dk/mingw/bin` are in PATH
* [ImageMagick](http://www.imagemagick.org/script/binary-releases.php#windows)<commit_msg>Add more details to dev setup instructions<commit_after># ireul-web

[![Build Status](https://travis-ci.org/gyng/ireul-web.svg)](https://travis-ci.org/gyng/ireul-web)

Rails (with React) client for [Ireul](https://github.com/infinityb/ireul/), a radio backend.

![Screenshot](http://i.imgur.com/SgSDlBG.png)

## Dev setup
0. [Install NodeJS](https://nodejs.org/en/download/)
1. [Install ImageMagick](http://www.imagemagick.org/index.php)
2. Clone
3. `bundle update`
4. `bundle install`
5. `rake db:migrate`
6. `rake db:seed`
7. Configure `config/ireul.yml` with Ireul server url/port
8. `cp config/fake_secrets.yml config/secrets.yml`
9. `rails runner script/create_user.rb`
10. `bundle exec rails server`

## Features
* Song database (48kHz OGG)
* Song requests with cooldowns
* Frosted background images for each song
* Cool interface

## Notes and useful commands
* Login at `http://example.com/login`
* `rake db:fixtures:dump` dumps existing DB as fixtures
* `rails runner script/ingest.rb`
* `Gemfile.lock` is in `.gitignore` due to cross-platform issues [1](https://github.com/bundler/bundler-features/issues/4). Also helps with running on Travis CI as local gems are used in this app.

### Test
`rake test`

### Windows
* Ruby22 + bcrypt — [1](https://github.com/codahale/bcrypt-ruby/issues/116), [2](https://www.alib.jp/entries/bcrypt_ext_load_error_on_ruby21x), make sure `git`, DevKit `dk/bin`, `dk/mingw/bin` are in PATH
* [ImageMagick](http://www.imagemagick.org/script/binary-releases.php#windows)
{'fraction_non_alphanumeric': 0.15532286212914484, 'fraction_numerical': 0.01605584642233857, 'mean_word_length': 4.664031620553359, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 13, 'lorem ipsum': 0, 'www.': 6, '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': '32203', 'n_tokens_mistral': 1065, 'n_tokens_neox': 1021, 'n_words': 261}