<commit_before>dart-cca-example
================

An example of Cordova Chrome Apps written in AngularDart.

Set up
------

First, checkout this repository:

    $ git clone https://github.com/MiCHiLU/dart-cca-example.git
    $ cd dart-cca-example
    $ git submodule init
    $ git submodule update
    $ bundle install
    $ npm install

Then, install cca (Cordova Chrome Apps):

    $ nvm install 0.10
    $ nvm use 0.10
    $ nvm alias default 0.10
    $ npm install -g ios-deploy
    $ npm install -g ios-sim
    $ npm install -g cca

Optional, if you use watchlion:

    $ mkvirtualenv dart-cca-example
    (dart-cca-example)$ pip install -r packages.txt

Build and Test
--------------

    $ make

Run development server
----------------------

    $ make pubserve

then access to:

* http://localhost:8080/

Build the Chrome Apps
---------------------

    $ make chrome-apps

Launch the Chrome Apps via iOS Simulator
----------------------------------------

    $ make ios-sim

Launch the Chrome Apps via iOS device
-------------------------------------

    $ make ios

Open project for iOS with Xcode
-------------------------------

    $ make xcode

How to access to your Google Cloud Endpoints API
------------------------------------------------

Get the discovery file of your Google Cloud Endpoints API:

    $ curl -o assets/<your-api>.discovery https://<your-app-id>.appspot.com/_ah/api/discovery/v1/apis/<your-api>/<your-api-version>/rest

Then, add a dependencies entry that a dart library of your Google Cloud Endpoints API in pubspec.yaml as follows:

    dependencies:
      <your-api>_<your-api-version>_api:
        path: submodule/dart_<your-api>_<your-api-version>_api_client<commit_msg>typo fix<commit_after>dart-cca-example
================

An example of Cordova Chrome Apps written in AngularDart.

Set up
------

First, checkout this repository:

    $ git clone https://github.com/MiCHiLU/dart-cca-example.git
    $ cd dart-cca-example
    $ git submodule init
    $ git submodule update
    $ bundle install
    $ npm install

Then, install cca (Cordova Chrome Apps):

    $ nvm install 0.10
    $ nvm use 0.10
    $ nvm alias default 0.10
    $ npm install -g ios-deploy
    $ npm install -g ios-sim
    $ npm install -g cca

Optional, if you use watchlion:

    $ mkvirtualenv dart-cca-example
    (dart-cca-example)$ pip install -r packages.txt

Build and Test
--------------

    $ make

Run development server
----------------------

    $ make pubserve

then access to:

* http://localhost:8080/

Build the Chrome Apps
---------------------

    $ make chrome-apps

Launch the Chrome Apps via iOS Simulator
----------------------------------------

    $ make ios-sim

Launch the Chrome Apps via iOS device
-------------------------------------

    $ make ios

Open project for iOS with Xcode
-------------------------------

    $ make xcode

How to access to your Google Cloud Endpoints API
------------------------------------------------

Get the discovery file of your Google Cloud Endpoints API:

    $ curl -o assets/<your-api>-<your-api-version>.discovery https://<your-app-id>.appspot.com/_ah/api/discovery/v1/apis/<your-api>/<your-api-version>/rest

Then, add a dependencies entry that a dart library of your Google Cloud Endpoints API in pubspec.yaml as follows:

    dependencies:
      <your-api>_<your-api-version>_api:
        path: submodule/dart_<your-api>_<your-api-version>_api_client
{'fraction_non_alphanumeric': 0.20922809053975625, 'fraction_numerical': 0.00812536273940801, 'mean_word_length': 1.8605809128630706, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, 'https://': 4, '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': '1806486', 'n_tokens_mistral': 1047, 'n_tokens_neox': 963, 'n_words': 324}