<commit_before># P-Review
NOTE: This app is still in development

![screenshot of this app](https://raw.githubusercontent.com/Frankwarnaar/minor-persgroep/master/readme_screens/review.png)

This app is a plaform for young writers. Young people (20 - 30 years old) seem to lose interest in the news these days. By making a platform for these people and making them involved in writing the articles, the articles become more relevant for the target group itself.

Within the platform, writers can review articles from other people. This way, writers can learn from others, and the platform becomes a community. Reviewers receive score for their reviews. The amount of score relies on the type of review (syntax, style or content). With this score, a ranking is made up of best reviewers. The best reviewers might be rewarded with payments from De Persgroep. For the Persgroep, it is interesting to reward reviewers, because they make the content on their platform better. This should lead to more visitors.

## Installation
The first is [setting up a mongo database](http://mongodb.github.io/node-mongodb-native/2.2/quick-start/quick-start/). Make sure you edit the url to the database in `.env`, after cloning, in the root of the project to the url of your database. After that run the next command in your terminal:

```bash
git clone https://github.com/Frankwarnaar/minor-persgroep.git
npm install
npm run build
npm start
```

## Development
After installation, run in your terminal:
```bash
npm run dev
```

## Features

### Must haves
* [x] Create articles
* [x] Edit articles
* [x] Review articles with a basic form, under each article
* [x] Show the reviews already done on an article
* [x] Get an overview of the reviews on your article<commit_msg>build tasks documented<commit_after># P-Review
NOTE: This app is still in development

![screenshot of this app](https://raw.githubusercontent.com/Frankwarnaar/minor-persgroep/master/readme_screens/review.png)

This app is a plaform for young writers. Young people (20 - 30 years old) seem to lose interest in the news these days. By making a platform for these people and making them involved in writing the articles, the articles become more relevant for the target group itself.

Within the platform, writers can review articles from other people. This way, writers can learn from others, and the platform becomes a community. Reviewers receive score for their reviews. The amount of score relies on the type of review (syntax, style or content). With this score, a ranking is made up of best reviewers. The best reviewers might be rewarded with payments from De Persgroep. For the Persgroep, it is interesting to reward reviewers, because they make the content on their platform better. This should lead to more visitors.

## Installation
The first is [setting up a mongo database](http://mongodb.github.io/node-mongodb-native/2.2/quick-start/quick-start/). Make sure you edit the url to the database in `.env`, after cloning, in the root of the project to the url of your database. After that run the next command in your terminal:

```bash
git clone https://github.com/Frankwarnaar/minor-persgroep.git
npm install
gulp build
npm start
```

## Development
After installation, run in your terminal:
```bash
gulp default
```
Start watch and browser-sync tasks

### Build tasks

#### Main tasks
* Start `watch`, `browser-sync` and `server` tasks
```bash
gulp default
```
* Start build
```bash
gulp build
```
* Clean dist folder
```bash
gulp clean
```

#### Sub tasks
* Start server that restarts on changes
```bash
gulp server
```

* Start all watch tasks
```bash
gulp watch
```

* Watch views, refresh browser-sync on changes
```bash
gulp watch:html
```

* Watch scss files for changes, rebuild to css on changes
```bash
gulp watch:styles
```

* Compile scss to css
```bash
gulp styles
```

* Watch for changes in javascript if debug is enabled in config, otherwise build once
```bash
gulp watchify
```

* Start browser-sync server for displaying changes in client side code realtime in the browsr
```bash
gulp browser-sync
```

* Compress images
```bash
gulp images
```

## Features

### Must haves
* [x] Create articles
* [x] Edit articles
* [x] Review articles with a basic form, under each article
* [x] Show the reviews already done on an article
* [x] Get an overview of the reviews on your article
{'fraction_non_alphanumeric': 0.07956890621417106, 'fraction_numerical': 0.002751662462737904, 'mean_word_length': 4.4798994974874375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '1804587', 'n_tokens_mistral': 1237, 'n_tokens_neox': 1143, 'n_words': 620}