<commit_before># **Bitfication**

**Bitfication** is a fully functional, Open Source, Bitcoin Exchange. It powers the Exchange `bitfication.com`, a CryptoCurrency Trading Platform.

Features:

- Written in Ruby on Rails

- Powered by Ubuntu

- Fully localizable

- Multi-currency (under development)

## Installation on top of Ubuntu 14.04.2 LTS

You must have, at least, one Ubuntu 14.04.2 Server, fresh installed. Can be the `Minimum Virtual Machine` flavor, option `F4` at Ubuntu's ISO Boot Menu.

For a Production Environment, you might want to split the services, each one deployed on its own Ubuntu Instance. Like for example:

- Public Apache (forbid /admin and cronjobs);

- Private Apache (allow /admin + cronjobs);

- Bitcoin Daemon;

- MySQL.

The following commands must be executed as `root` user, change to another user only when required.

* Install the following packages:

        apt-get install git acpid tmux ruby rails bundler capistrano ruby-mysql2 ruby-addressable ruby-coffee-rails ruby-will-paginate ruby-mocha ruby-execjs ruby-factory-girl-rails ruby-sprockets ruby-uglifier ruby-bcrypt imagemagick memcached curl vim postfix apache2 libapache2-mod-passenger mysql-client mysql-server build-essential apache2-dev libqrencode-dev libcurl4-gnutls-dev libmysqlclient-dev software-properties-common

*NOTE: The Ubuntu package `ruby-recaptcha` can not be used due to bug LP#1400564*

## Prepate Ubuntu 14.04.2 LTS

Due to Ubuntu Bug LP#1319376, we need to add an external PPA into our O.S., which will provides a newer version of Rails (3.2.19) for our RoR Application.

This new PPA contains a fews backports from Ubuntu Utopic, to Trusty. So, if you prefer, you can use Ubuntu 14.10 without any problems (I believe).

* Adding InternetGroup's Ubuntu PPA Repository:

	add-apt-repository ppa:martinx/ig

	apt-get update

	apt-get dist-upgrade

## Install Bitcoin Daemon

Complete procedure to install Bitfication's Bitcoin Hot Wallet.

* Add Bitcoin's Ubuntu Oficial PPA Repository:

        add-apt-repository ppa:bitcoin/bitcoin

* Updating Ubuntu:

        apt-get update

* Install Bitcoin Daemon:

        apt-get install bitcoind

* Create the Bitcoin Deamon Runtime User:

        adduser bitcoin

*NOTE: There is a Bitcoin Daemon configuration example located at the file: `bitfication/misc/bitcoin.conf`. You'll need to copy it to: `~bitcoin/.bitcoin/bitcoin.conf`.*

* Now, run the `bitcoind` logged as user `bitcoin`, like this:
<commit_msg>Small fix on README.md.<commit_after># **Bitfication**

**Bitfication** is a fully functional, Open Source, Bitcoin Exchange. It powers the Exchange `bitfication.com`, a CryptoCurrency Trading Platform.

Features:

- Written in Ruby on Rails

- Powered by Ubuntu

- Fully localizable

- Multi-currency (under development)

## Installation on top of Ubuntu 14.04.2 LTS

You must have, at least, one Ubuntu 14.04.2 Server, fresh installed. Can be the `Minimum Virtual Machine` flavor, option `F4` at Ubuntu's ISO Boot Menu.

For a Production Environment, you might want to split the services, each one deployed on its own Ubuntu Instance. Like for example:

- Public Apache (forbid /admin and cronjobs);

- Private Apache (allow /admin + cronjobs);

- Bitcoin Daemon;

- MySQL.

The following commands must be executed as `root` user, change to another user only when required.

* Install the following packages:

        apt-get install git acpid tmux ruby rails bundler capistrano ruby-mysql2 ruby-addressable ruby-coffee-rails ruby-will-paginate ruby-mocha ruby-execjs ruby-factory-girl-rails ruby-sprockets ruby-uglifier ruby-bcrypt imagemagick memcached curl vim postfix apache2 libapache2-mod-passenger mysql-client mysql-server build-essential apache2-dev libqrencode-dev libcurl4-gnutls-dev libmysqlclient-dev software-properties-common

*NOTE: The Ubuntu package `ruby-recaptcha` can not be used due to bug LP#1400564*

## Prepate Ubuntu 14.04.2 LTS

Due to Ubuntu Bug LP#1319376, we need to add an external PPA into our O.S., which will provides a newer version of Rails (3.2.19) for our RoR Application.

This new PPA contains a fews backports from Ubuntu Utopic, to Trusty. So, if you prefer, you can use Ubuntu 14.10 without any problems (I believe).

* Adding InternetGroup's Ubuntu PPA Repository:

        add-apt-repository ppa:martinx/ig

        apt-get update

        apt-get dist-upgrade

## Install Bitcoin Daemon

Complete procedure to install Bitfication's Bitcoin Hot Wallet.

* Add Bitcoin's Ubuntu Oficial PPA Repository:

        add-apt-repository ppa:bitcoin/bitcoin

* Updating Ubuntu:

        apt-get update

* Install Bitcoin Daemon:

        apt-get install bitcoind

* Create the Bitcoin Deamon Runtime User:

        adduser bitcoin

*NOTE: There is a Bitcoin Daemon configuration example located at the file: `bitfication/misc/bitcoin.conf`. You'll need to copy it to: `~bitcoin/.bitcoin/bitcoin.conf`.*

* Now, run the `bitcoind` logged as user `bitcoin`, like this:

{'fraction_non_alphanumeric': 0.07391042377987547, 'fraction_numerical': 0.017272544687688293, 'mean_word_length': 3.9949849548645937, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1478146', 'n_tokens_mistral': 1653, 'n_tokens_neox': 1432, 'n_words': 613}