<commit_before>fortune-admin
=============

Fortune admin is an angular component that provides a CRUD UI, and an ERD for a fortune instance. It's designed to be used as a bower module included in a host app, however for testing we also provide a node JS host app (examples/server.js) with a simple Angular/HTML container (examples/index.html).

## Start here : Running as a standalone app

0) bower install in the root of the repository

1) cd into examples

2) npm install

3) node server.js

4) open your browser and navigate the interface; the top navigation has links to the UML

## To include the angular component as a plugin for existing app

1) Add .css and .js fortune-admin files

2) include `fortune-admin` to your app deps

3) set mount point in your routes configuration

4) add a menu link pointing to where you mount fortune-admin + '/uml'

```js

    angular.module('yourApp', [
       'ngRoute',
       'fortuneAdmin'
    ])
     .config('$routeProvider', '$locationProvider', 'fortuneAdminProvider',
      function($routeProvider, $locationProvider, fortuneAdminProvider){
        //Your routes go here.

        //1. Point plugin to your running fortune service
        fortuneAdminProvider.setApiHost('http://some.other.host.com');<commit_msg>Updated readme to include submodule<commit_after>fortune-admin
=============

Fortune admin is an angular component that provides a CRUD UI, and an ERD for a fortune instance. It's designed to be used as a bower module included in a host app, however for testing we also provide a node JS host app (examples/server.js) with a simple Angular/HTML container (examples/index.html).

## Start here : To run the example as a standalone app

* cd into the root of this repository

* git submodule init

* git submodule update

* bower install

* cd into examples

* npm install

* node server.js

* open your browser and navigate the interface; the top navigation has links to the UML

## To include the angular component as a plugin for existing app

* Add .css and .js fortune-admin files

* include `fortune-admin` to your app deps

* set mount point in your routes configuration

* add a menu link pointing to where you mount fortune-admin + '/uml'

```js

    angular.module('yourApp', [
       'ngRoute',
       'fortuneAdmin'
    ])
     .config('$routeProvider', '$locationProvider', 'fortuneAdminProvider',
      function($routeProvider, $locationProvider, fortuneAdminProvider){
        //Your routes go here.

        //1. Point plugin to your running fortune service
        fortuneAdminProvider.setApiHost('http://some.other.host.com');
{'fraction_non_alphanumeric': 0.08707326428845416, 'fraction_numerical': 0.004219409282700422, 'mean_word_length': 3.682226211849192, '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': '6997833', 'n_tokens_mistral': 709, 'n_tokens_neox': 688, 'n_words': 326}