<commit_before># Starter kit for single page app


### Prerequisites
* [NodeJS](https://nodejs.org/en/) installed


### Installation

* download and extract [zip](https://github.com/YannickBochatay/JSYG-starterkit/archive/master.zip)

* move to directory JSYG-starterkit-master

* enter command
```shell
npm install
```
It can takes several minutes


### Get started
```shell
npm start
```
Build app (in memory) and launch the dev-server with hot reload.
You have to open your browser and go to *http://localhost:8080/*.


```shell
npm test
```
Run tests with Karma and Jasmine. All files with *.test.js* or *.test.jsx* extension inside *src/* directory will be executed, with hot reload.

```shell
npm run build-dev
```
Build app (in builds/ folder) for development

```shell
npm run build-prod
```
Build app (in builds/ folder) for production (clean, optimize, minify)


### Warning
If your app is not in the web-root folder (ex : *http://myDomain.fr/myApp/* instead of *http://myDomain.fr/* ) you'll have to change the *publicPath* property in *webpack.config.js* (ex : *publicPath : "/myApp/builds/"* instead of *publicPath : "/builds/"*).


### Features

* ES6 and JSX with [Babel](https://babeljs.io/)

* [Less](http://lesscss.org/) and [Sass](http://sass-lang.com/) support.

* Code quality with [ESLint](http://eslint.org/)

* smart auto-build and reload with [WebPack](https://webpack.github.io/)

* super easy imports from [bower](http://bower.io/) components and [npm](https://www.npmjs.com/) packages.

* [React](https://facebook.github.io/react/) components

* [React-router](https://github.com/reactjs/react-router/) with dynamic loading for [huge apps](https://github.com/reactjs/react-router/tree/master/examples/huge-apps)

* Testing environment with [Karma](https://karma-runner.github.io/) and [Jasmine](http://jasmine.github.io/)

* [Material-ui](http://www.material-ui.com/#/)<commit_msg>Ajout de la démo<commit_after># Starter kit for single page app

### Demo

[http://yannickbochatay.github.io/JSYG-starterkit/](http://yannickbochatay.github.io/JSYG-starterkit/)



### Features

* ES6 and JSX with [Babel](https://babeljs.io/)

* [Less](http://lesscss.org/) and [Sass](http://sass-lang.com/) support.

* Code quality with [ESLint](http://eslint.org/)

* smart auto-build and reload with [WebPack](https://webpack.github.io/)

* easy imports from [bower](http://bower.io/) components and [npm](https://www.npmjs.com/) packages.

* [React](https://facebook.github.io/react/) components

* [React-router](https://github.com/reactjs/react-router/) with dynamic loading for [huge apps](https://github.com/reactjs/react-router/tree/master/examples/huge-apps)

* Testing environment with [Karma](https://karma-runner.github.io/) and [Jasmine](http://jasmine.github.io/)

* [Material-ui](http://www.material-ui.com/#/)



### Prerequisites
* [NodeJS](https://nodejs.org/en/) installed



### Installation

* download and extract [zip](https://github.com/YannickBochatay/JSYG-starterkit/archive/master.zip)

* move to directory JSYG-starterkit-master

* enter command
```shell
npm install
```
It can takes several minutes


### Get started
```shell
npm start
```
Build app (in memory) and launch the dev-server with hot reload.
You have to open your browser and go to *http://localhost:8080/*.


```shell
npm test
```
Run tests with Karma and Jasmine. All files with *.test.js* or *.test.jsx* extension inside *src/* directory will be executed, with hot reload.

```shell
npm run build-dev
```
Build app (in builds/ folder) for development

```shell
npm run build-prod
```
Build app (in builds/ folder) for production (clean, optimize, minify)



### Warning
If your app is not in the web-root folder (ex : *http://myDomain.fr/myApp/* instead of *http://myDomain.fr/* ) you'll have to change the *publicPath* property in *webpack.config.js* (ex : *publicPath : "/myApp/builds/"* instead of *publicPath : "/builds/"*).
{'fraction_non_alphanumeric': 0.16603101957793034, 'fraction_numerical': 0.0025425883549453345, 'mean_word_length': 4.2313829787234045, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 18, 'lorem ipsum': 0, 'www.': 4, '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': '5148960', 'n_tokens_mistral': 1349, 'n_tokens_neox': 1255, 'n_words': 365}