<commit_before>[![Dependency Status](https://david-dm.org/datatypevoid/generator-vulgar.svg)](https://david-dm.org/datatypevoid/generator-vulgar) [![Build Status](https://travis-ci.org/datatypevoid/generator-vulgar.svg?branch=master)](https://travis-ci.org/datatypevoid/generator-vulgar) [![GitHub release](https://img.shields.io/github/release/qubyte/rubidium.svg)](https://github.com/datatypevoid/generator-vulgar) [![Issue Stats](http://issuestats.com/github/datatypevoid/generator-vulgar/badge/pr?style=flat)](http://issuestats.com/github/datatypevoid/generator-vulgar) [![Issue Stats](http://issuestats.com/github/datatypevoid/generator-vulgar/badge/issue?style=flat)](http://issuestats.com/github/datatypevoid/generator-vulgar) [![Stack Share](http://img.shields.io/badge/tech-stack-0690fa.svg?style=flat)](stackshare.io/datatypevoid/vulgar)
<p align="center">
  <a href="http://www.davidniciforovic.com" target="_blank">
    <img src="https://cloud.githubusercontent.com/assets/10481547/13734874/f4e190ea-e978-11e5-841e-2459f3f5c9e0.png" alt="MEAN with NG2 and Webpack" />
  </a>
</p>

# generator-vulgar [![Join Slack](https://img.shields.io/badge/slack-join-brightgreen.svg)](http://www.davidniciforovic.com/wp-login.php?action=slack-invitation)

## _This project is currently in `alpha` and is being developed for use under the hood of [vulgar-cli](https://github.com/datatypevoid/vulgar-cli), a tool for generating and managing cutting-edge MEAN stack applications_

### Angular 2 Scaffolds for the Front-End

You can use `$ yo vulgar` to generate various Angular 2 components:

```bash
# generate a new Angular 2 component
$ yo vulgar:ng-component

# generate a new Angular 2 directive
$ yo vulgar:ng-directive

# look at this cool new Angular 2 pipe
$ yo vulgar:ng-pipe

# and this awesome Angular 2 service
$ yo vulgar:ng-service
```

You can find all possible scaffolds in the table below:

Scaffold  | Usage
--------- | --------------------------
Component | `$ yo vulgar:ng-component`
Directive | `$ yo vulgar:ng-directive`
Pipe      | `$ yo vulgar:ng-pipe`
Service   | `$ yo vulgar:ng-service`

### Generating a Routable Component on the Front-end<commit_msg>docs(readme): add docs for model & route gen<commit_after>[![Dependency Status](https://david-dm.org/datatypevoid/generator-vulgar.svg)](https://david-dm.org/datatypevoid/generator-vulgar) [![Build Status](https://travis-ci.org/datatypevoid/generator-vulgar.svg?branch=master)](https://travis-ci.org/datatypevoid/generator-vulgar) [![GitHub release](https://img.shields.io/github/release/qubyte/rubidium.svg)](https://github.com/datatypevoid/generator-vulgar) [![Issue Stats](http://issuestats.com/github/datatypevoid/generator-vulgar/badge/pr?style=flat)](http://issuestats.com/github/datatypevoid/generator-vulgar) [![Issue Stats](http://issuestats.com/github/datatypevoid/generator-vulgar/badge/issue?style=flat)](http://issuestats.com/github/datatypevoid/generator-vulgar) [![Stack Share](http://img.shields.io/badge/tech-stack-0690fa.svg?style=flat)](stackshare.io/datatypevoid/vulgar)
<p align="center">
  <a href="http://www.davidniciforovic.com" target="_blank">
    <img src="https://cloud.githubusercontent.com/assets/10481547/13734874/f4e190ea-e978-11e5-841e-2459f3f5c9e0.png" alt="MEAN with NG2 and Webpack" />
  </a>
</p>

# generator-vulgar [![Join Slack](https://img.shields.io/badge/slack-join-brightgreen.svg)](http://www.davidniciforovic.com/wp-login.php?action=slack-invitation)

## _This project is currently in `alpha` and is being developed for use under the hood of [vulgar-cli](https://github.com/datatypevoid/vulgar-cli), a tool for generating and managing cutting-edge MEAN stack applications_

### Scaffolds for the Back-End

You can use `$ yo vulgar` to generate various back-end components:

```bash
# generate a new Mongoose model
$ yo vulgar:model
```

Afterwards to use the new model and route together, open `app/routes.js`, import your new route and add it to the `RESTful API` section:

```
// Load our API routes for the `new` component
import newRoutes from './routes/_new.router.js';

// . . .

// #### RESTful API Routes

  // Pass in our Express app and Router
  newRoutes(app, router);

```

```bash
# generate a new Express route
$ yo vulgar:route
```

You can find all possible scaffolds in the table below:

Scaffold  | Usage
--------- | --------------------------
Model     | `$ yo vulgar:model`
Route     | `$ yo vulgar:route`

### Angular 2 Scaffolds for the Front-End

You can use `$ yo vulgar` to generate various Angular 2 components:

```bash
# generate a new Angular 2 component
$ yo vulgar:ng-component

# generate a new Angular 2 directive
$ yo vulgar:ng-directive

# look at this cool new Angular 2 pipe
$ yo vulgar:ng-pipe

# and this awesome Angular 2 service
$ yo vulgar:ng-service
```

You can find all possible scaffolds in the table below:

Scaffold  | Usage
--------- | --------------------------
Component | `$ yo vulgar:ng-component`
Directive | `$ yo vulgar:ng-directive`
Pipe      | `$ yo vulgar:ng-pipe`
Service   | `$ yo vulgar:ng-service`

### Generating a Routable Component on the Front-end
{'fraction_non_alphanumeric': 0.16329311015959516, 'fraction_numerical': 0.018684312962242117, 'mean_word_length': 4.392444910807975, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 18, 'lorem ipsum': 0, 'www.': 4, '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': '1387498', 'n_tokens_mistral': 1839, 'n_tokens_neox': 1685, 'n_words': 378}