<commit_before># JSweet Node.js / Socket.IO server + Angular web client example

The classic Socket.IO example: a simple instant messenger. Server is spawned by Node.js and Web UI is powered by Angular. Both are linked together by Socket.IO

Find more info about this example on the original tutorial by following this link: http://socket.io/get-started/chat/

All these example are written in Java using the JSweet APIs (candies). They are then transpiled to JavaScript by the JSweet transpiler.

Try it [here](http://examples.jsweet.org:1337)

## Build it
Just build it using Gulp:

```
> git clone https://github.com/lgrignon/jsweet-node-example.git
> cd jsweet-node-example
> bower install
> npm install
> gulp full
```

`gulp full` executes behind the scene `gulp buildServer` and `gulp buildClient` which runs respectively `mvn generate-sources -P server` and `mvn generate-sources -P client`. Other less significants tasks are launched, such as jade transpilation, resources copy, bower libs concat & minify.
The output folder is `build`.

## Run it
Once built: 
```
> cd build
> node server/module.js
```

Then, one could browse the chat by accessing [http://localhost:1337/](http://localhost:1337/) in a browser.

## Prerequisites

The `node` and `npm` executables must be in the path (https://nodejs.org). `bower` and `gulp` should be installed as well.
Install Maven (https://maven.apache.org/install.html).<commit_msg>fixed install order<commit_after># JSweet Node.js / Socket.IO server + Angular web client example

The classic Socket.IO example: a simple instant messenger. Server is spawned by Node.js and Web UI is powered by Angular. Both are linked together by Socket.IO

Find more info about this example on the original tutorial by following this link: http://socket.io/get-started/chat/

All these example are written in Java using the JSweet APIs (candies). They are then transpiled to JavaScript by the JSweet transpiler.

### Try it [here](http://examples.jsweet.org:1337){:target="_blank"}

## Build it
Just build it using Gulp:

```
> git clone https://github.com/lgrignon/jsweet-node-example.git
> cd jsweet-node-example
> npm install
> bower install
> gulp full
```

`gulp full` executes behind the scene `gulp buildServer` and `gulp buildClient` which runs respectively `mvn generate-sources -P server` and `mvn generate-sources -P client`. Other less significants tasks are launched, such as jade transpilation, resources copy, bower libs concat & minify.
The output folder is `build`.

## Run it
Once built: 
```
> cd build
> node server/module.js
```

Then, one could browse the chat by accessing [http://localhost:1337/](http://localhost:1337/) in a browser.

## Prerequisites

The `node` and `npm` executables must be in the path (https://nodejs.org). `bower` and `gulp` should be installed as well.
Install Maven (https://maven.apache.org/install.html).
{'fraction_non_alphanumeric': 0.10145429362880887, 'fraction_numerical': 0.008310249307479225, 'mean_word_length': 4.369888475836431, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, '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': '2158013', 'n_tokens_mistral': 889, 'n_tokens_neox': 838, 'n_words': 361}