<commit_before># Installation

This project, *react-titanium*, works with React `>=0.14`.

Because it expects you to have a node-compatible environment to work with, and Titanium™ offers only a minimal CommonJS implementation, you need to use a tool such as [Titaniumifier][Titaniumifier] in [Host-mode][host-mode].

This is indeed how we test *react-titanium*, and this documentation will also guide you in setting everything up and running.

[titaniumifier]: https://github.com/smclab/titaniumifier
[host-mode]: https://github.com/smclab/titaniumifier/wiki/Host-mode


## Create your app project

We suggest you to start with a new app project, and once accustomed to both *titaniumifier* and *react-titanium* migrate your Classic or Alloy projects.

If this is your first time working with Titanium™ SDK, head over [Appcelerator website](http://www.appcelerator.com/) and setup your environment.

You can use Appcelerator Studio, or if you love the terminal as we do then execute the following commands:

    $ cd ~/Titanium_Workspace/<commit_msg>Better installation<commit_after># Installation

This project, *react-titanium*, works with React `>=0.14`.

Because it expects you to have a node-compatible environment to work with, and Titanium™ offers only a minimal CommonJS implementation, you need to use a tool such as [Titaniumifier][Titaniumifier] in [Host-mode][host-mode].

This is indeed how we test *react-titanium*, and this documentation will also guide you in setting everything up and running.

[titaniumifier]: https://github.com/smclab/titaniumifier
[host-mode]: https://github.com/smclab/titaniumifier/wiki/Host-mode


## Setup Titanium™ SDK

> Note: if you Appcelerator® Studio or Titanium™ SDK already set up you can skip this section.

To install all the necessary tools you should read the [guide provided by Appcelerator](http://docs.appcelerator.com/platform/latest/#!/guide/Installation_and_Configuration).

**If you have any issue there’s a great [Slack community (called `ti-slack`)][ti-slack] and you can [signup here][ti-slack-signup].**

A fast overview that covers the installation of the completely OSS version of the tooling is the following:

1. Install [**Node.js**](https://nodejs.org/)

2. Install the native platform SDKs, Appcelerator has guides for [Android][Android], [iOS][iOS] and [Windows Phone][Windows Phone]

3. Install the Titanium™ CLI

       [sudo] npm install --global titanium tisdk

4. Install the latest stable Titanium™ SDK

       titanium sdk install --default

5. Setup the environment

       titanium setup


[Android]: http://docs.appcelerator.com/platform/latest/#!/guide/Installing_the_Android_SDK
[iOS]: http://docs.appcelerator.com/platform/latest/#!/guide/Installing_the_iOS_SDK
[Windows Phone]: http://docs.appcelerator.com/platform/latest/#!/guide/Installing_the_Windows_Phone_SDK

[ti-slack]: https://ti-slack.slack.com
[ti-slack-signup]: http://topener.nl/tislack/

## Create your app project

We suggest you to start with a new app project, and once accustomed to both *titaniumifier* and *react-titanium* migrate your Classic or Alloy projects.

You can use Appcelerator Studio, or if you love the terminal as we do then execute the following commands:

    $ cd ~/Titanium_Workspace/
{'fraction_non_alphanumeric': 0.09573488800245473, 'fraction_numerical': 0.0033752684872660325, 'mean_word_length': 4.719298245614035, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 6, 'lorem ipsum': 0, 'www.': 1, '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': '470182', 'n_tokens_mistral': 995, 'n_tokens_neox': 945, 'n_words': 370}