<commit_before># MEANapp #

Complete MEAN stack application with authentication using json web tokens.
Angular CLI, MongoDB and NPM need to be installed to run / build the app.
Angular 2 is being used in this example app.

### Version ###
1.0.0

## Usage ##
---

### Installation ###

#### Mac OSX and Homebrew ####

* Install Homebrew: https://brew.sh/

* Install Node / NPM: https://changelog.com/posts/install-node-js-with-homebrew-on-os-x

* Install MongoDB:

```sh
$ brew install mongodb
```

In case you have an older version of MongoDB installed you might ned to remove it first before you can install the latest version:
```sh
$ brew unlink mongodb
```

#### Linux / Windows ####

* Install Node / NPM: https://nodejs.org/en/

* Install MongoDB: https://www.mongodb.com/download-center?jmp=nav#community

#### All OS ####

Install Angular CLI:

```sh
$ npm install -g angular-cli
```

Install _nodemon_ to automatically update any changes in your code while the node server is running.
```sh
$ npm install -g nodemon
```

Run nodemon:
```sh
$ nodemon
```

Install the dependencies:
```sh
$ npm install
```

Start MongoDB (if not yet started):
```sh
$ mongod
```

Start MongoDB shell if needed:
```sh
$ mongo
```

Build the app:
```sh
$ ng build
```

Run the app:
```sh
$ npm start
```<commit_msg>Add missing info for building the app.<commit_after># MEANapp

Complete MEAN stack application with authentication using json web tokens. Angular CLI, MongoDB and NPM need to be installed to run / build the app. Angular 2 is being used in this example app.

## Version

1.0.0

## Usage

--------------------------------------------------------------------------------

### Installation

#### Mac OSX and Homebrew

- Install Homebrew: <https://brew.sh/>

- Install Node / NPM: <https://changelog.com/posts/install-node-js-with-homebrew-on-os-x>

- Install MongoDB:

```sh
$ brew install mongodb
```

In case you have an older version of MongoDB installed you might ned to remove it first before you can install the latest version:

```sh
$ brew unlink mongodb
```

#### Linux / Windows

- Install Node / NPM: <https://nodejs.org/en/>

- Install MongoDB: <https://www.mongodb.com/download-center?jmp=nav#community>

#### All OS

Install Angular CLI:

```sh
$ npm install -g angular-cli
```

Install _nodemon_ to automatically update any changes in your code while the node server is running.

```sh
$ npm install -g nodemon
```

Run nodemon:

```sh
$ nodemon
```

Install the dependencies:

```sh
$ npm install
```

Start MongoDB (if not yet started):

```sh
$ mongod
```

Start MongoDB shell if needed:

```sh
$ mongo
```

Run the dev mode:

```sh
$ cd angular-src
$ ng serve
```

The app should be available on: <http://localhost:4200>

Build the app:

```sh
$ cd angular-src
$ ng build
```

Run the app:

```sh
$ npm start
```
{'fraction_non_alphanumeric': 0.16072059342988343, 'fraction_numerical': 0.0042387848816672555, 'mean_word_length': 3.290909090909091, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7670234', 'n_tokens_mistral': 968, 'n_tokens_neox': 886, 'n_words': 346}