<commit_before># node4ords
Simple node app to act as web listener to sit on top of Oracle Rest Data Services (ORDS) web container (such as Tomcat). This is an alternative to using an Apache web server.

This project was created as part of the Oracle XE / APEX VM install project: https://github.com/OraOpenSource/oraclexe-apex

*Please note this is still in beta and additional changes will be coming.*

#Install
```bash
git clone https://github.com/OraOpenSource/node4ords.git
#TODO the unsafe-perm may not be required
cd ./node4ords
npm install --unsafe-perm
```

##Upgrade
Node4ORDS comes with a self updating script. If you have made any customizations to any file in the project be sure to back it up as this script will delete the folder. To run:

```bash
#Go to your app folder and update
. /var/www/node4ords/update.sh
```

If you are missing `update.sh` it means you are running an older version of Node4ORDS. Please do a manual upgrade as described in [this post](http://www.oraopensource.com/blog/2015/4/18/node4ords-update).

#Config
All the configuration in ```config.js```. This should be reviewed before installing to configure the web container URL, ports, etc.

#Run

```bash
node app.js
```

An example of how to start this app on boot can be found in the [Oraclexe-Apex](https://github.com/OraOpenSource/oraclexe-apex) project. Specifically the [init.d/node4ords](https://github.com/OraOpenSource/oraclexe-apex/blob/master/init.d/node4ords) file.
<commit_msg>Minor doc changes<commit_after># Node4ORDS
Simple node app to act as web listener to sit on top of Oracle Rest Data Services (ORDS) web container (such as Tomcat). This is an alternative to using an Apache web server.

This project was created as part of the Oracle XE / APEX VM install project: https://github.com/OraOpenSource/oraclexe-apex

*Please note this is still in beta and additional changes will be coming.*

#Install
```bash
git clone https://github.com/OraOpenSource/node4ords.git
#TODO the unsafe-perm may not be required
cd ./node4ords
npm install --unsafe-perm
```

##Upgrade
Node4ORDS comes with a self updating script. If you have made any customizations to any file in the project be sure to back it up as this script will delete the folder. To run:

```bash
#Assuming that your app folder is in /var/www/node4ords
. /var/www/node4ords/update.sh
```

If you are missing `update.sh` it means you are running an older version of Node4ORDS. Please do a manual upgrade as described in [this post](http://www.oraopensource.com/blog/2015/4/18/node4ords-update).

#Config
All the configuration in ```config.js```. This should be reviewed before installing to configure the web container URL, ports, etc.

#Run

```bash
node app.js
```

An example of how to start this app on boot can be found in the [Oraclexe-Apex](https://github.com/OraOpenSource/oraclexe-apex) project. Specifically the [init.d/node4ords](https://github.com/OraOpenSource/oraclexe-apex/blob/master/init.d/node4ords) file.

{'fraction_non_alphanumeric': 0.09020791415157613, 'fraction_numerical': 0.011066398390342052, 'mean_word_length': 4.298401420959148, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 5, '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': '1384261', 'n_tokens_mistral': 926, 'n_tokens_neox': 890, 'n_words': 391}