<commit_before># modepress
A simple Mongo-Node CMS server. The server content can be accessed via an admin
panel and content can be requested via its RESTful API.
Modepress is written in Typescript using (at the least) mongodb v3 and nodejs 0.0.12.
Both mongo and node must be setup and running before you can run modepress.
Modepress also requires an instance of webinate-users to be running.

## Current stable version
* v0.3.1

## Requirements
* MongoDB v3
* Node 6.2
* [Webinate-Users](https://github.com/MKHenson/webinate-users)
* **Tested Ubuntu v14**
* [Gulp](https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md)

## Installation

1) Make sure the requirements are installed and running
2) Create a folder where you want to store the modepress project

```
mkdir modepress
cd modepress
```

3) Run as an admin / or make sure you have write privileges in the modepress folder
```
sudo su
```

4) Download and install the desired version from github
If you want the latest stable version:

```
curl -o- https://raw.githubusercontent.com/MKHenson/modepress/master/install-script.sh | bash
```

OR if you want the dev build

```
curl -o- https://raw.githubusercontent.com/MKHenson/modepress/dev/install-script-dev.sh | bash
```

This downloads the latest modepress project into the current folder. There are two sub-folders, one named server and one named admin.
The server folder holds the modepress server code and the admin holds a front-end app to administrate the server.

5) Install the server and its dependencies

```
cd server
npm update
gulp install
gulp build-all
```

After you call the build-all task, a dist folder is created within the server folder. This represents your distribution folder.
You still need to install the dependencies for this folder, so go into it and do an npm install

 ```
cd dist
npm update
```
<commit_msg>Updated readme (WIP)<commit_after># modepress
A simple Mongo-Node CMS server. The server content can be accessed via an admin
panel and content can be requested via its RESTful API.
Modepress is written in Typescript using (at the least) mongodb v3 and nodejs 0.0.12.
Both mongo and node must be setup and running before you can run modepress.
Modepress also requires an instance of webinate-users to be running.

## Current stable version
* v0.3.1

## Requirements
* MongoDB v3
* Node 6.2
* [Webinate-Users](https://github.com/MKHenson/webinate-users)
* **Tested Ubuntu v14**
* [Gulp](https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md)

## Installation

1) Make sure the requirements are installed and running
2) Create a folder where you want to store the modepress project

```
mkdir modepress
cd modepress
```

3) Run as an admin / or make sure you have write privileges in the modepress folder
```
sudo su
```

4) Download and install the desired version from github
If you want the latest stable version:

```
curl -o- https://raw.githubusercontent.com/MKHenson/modepress/master/install-script.sh | bash
```

OR if you want the dev build

```
curl -o- https://raw.githubusercontent.com/MKHenson/modepress/dev/install-script-dev.sh | bash
```

This downloads the latest modepress project into the current folder. There are two sub-folders, one named server and one named admin.
The server folder holds the modepress server code and the admin holds a front-end app to administrate the server.

5) Install the server dependencies, and build the server source code

```
cd server
npm install
gulp install
gulp build-all
```

After you call the build-all task, a dist folder is created within the server folder. This represents your distribution folder.
You still need to install the dependencies for this folder, so go into it and do an npm install

 ```
cd dist
npm install
```

{'fraction_non_alphanumeric': 0.07843658601435788, 'fraction_numerical': 0.009571922361074183, 'mean_word_length': 4.232267037552155, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3765212', 'n_tokens_mistral': 1136, 'n_tokens_neox': 1074, 'n_words': 508}