<commit_before># The Angular-Opium generator 

A [Yeoman](http://yeoman.io) generator for [AngularJS](http://angularjs.org) and [Opium](https://github.com/rgrinberg/opium).

Opium is an OCaml-based micro-framework.  For AngularJS integration with other micro-frameworks, see https://github.com/rayokota/MicroFrameworkRosettaStone.

## Installation

Install [Git](http://git-scm.com), [node.js](http://nodejs.org), and [OPAM](https://opam.ocaml.org), .  The development mode also requires [SQLite](http://www.sqlite.org).

Install Yeoman:

    npm install -g yo

Install the Angular-Opium generator:

    npm install -g generator-angular-opium

The above prerequisites can be installed to a VM using the [Angular-Opium provisioner](https://github.com/rayokota/provision-angular-opium).

## Creating a Opium service

In a new directory, generate the service:

    yo angular-opium

Install dependencies ([Mirage ORM](https://github.com/mirage/orm) and [Opium](https://github.com/rgrinberg/opium)).

	opam install orm opium
	
Build the service:<commit_msg>Minor tweak to README<commit_after># The Angular-Opium generator 

A [Yeoman](http://yeoman.io) generator for [AngularJS](http://angularjs.org) and [Opium](https://github.com/rgrinberg/opium).

Opium is an OCaml-based micro-framework.  For AngularJS integration with other micro-frameworks, see https://github.com/rayokota/MicroFrameworkRosettaStone.

## Installation

Install [Git](http://git-scm.com), [node.js](http://nodejs.org), and [OPAM](https://opam.ocaml.org).  The development mode also requires [SQLite](http://www.sqlite.org).

Install Yeoman:

    npm install -g yo

Install the Angular-Opium generator:

    npm install -g generator-angular-opium

The above prerequisites can be installed to a VM using the [Angular-Opium provisioner](https://github.com/rayokota/provision-angular-opium).

## Creating a Opium service

In a new directory, generate the service:

    yo angular-opium

Install dependencies ([Mirage ORM](https://github.com/mirage/orm) and [Opium](https://github.com/rgrinberg/opium)).

	opam install orm opium
	
Build the service:
{'fraction_non_alphanumeric': 0.12926136363636365, 'fraction_numerical': 0.0, 'mean_word_length': 4.516971279373368, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 2, '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': '3557300', 'n_tokens_mistral': 720, 'n_tokens_neox': 660, 'n_words': 180}