<commit_before># STARTER NODE/EXPRESS/ANGULAR WEBAPP #

## System Configs ##

**Created and Tested With:**

* Mac OSX 10.9.2
* Virtualbox 4.3.8 r92456
* Vagrant 1.4.3
* Grunt v0.1.13
* Bower version 1.2.8

* Uses Grunt Watch, which can be fully appreciated with the [LiveReload](https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei/details) plugin in Chrome

**Server Side Dependencies:**

* Node v0.10.26
	* Express

These are all installed when you run the bootstrap file. Specific versions of the node modules can be found in the www/package.json file.

**Front End Dependencies:**
* AngularJS

Versions of all of these can be found in the package.json file and the bower.json file.

### Getting Started ###

**To run this VM, you MUST have Vagrant installed.**

**After cloning the repo, start up the Vagrant box:**

`vagrant up`

`vagrant ssh`

`cd /vagrant`

`sh bootstrap.sh`

**Then, from your local machine:**

`cd www/public_src/libs`

`bower install`

`cd ../../`

`grunt build`

** Run grunt watch for live editing/minification: **

`grunt watch`

### Server Editing ###

Keep in mind that changes made on the server require server restarts, so Node can reload the changes:

`sudo stop nodeserver`

`sudo start nodeserver`

Error logs can be found here: `/var/log/nodeserver.sys.log`


### Live Deployment ###

For the live versions of the bootstrap and config files, look in the livescripts directory.

The .conf files should go into the /var directory, and the bootstrap.sh file should be in the /var/www directory.

### About the Server ###

The node Express server will run as a daemon script, and will restart after reboot using Upstart (installed in the bootstrap. See the nodeserver.conf file for settings).

It is kept running using Monit, which will keep it running through errors and problems (see nodeservermonit.conf for more info)

###Credits:###
* Originally based off of [<NAME>'s Angular Skeleton](https://github.com/jlongnbt/angular-skeleton "jlongnbt repo")
* Monit and Upstart setup based off of the tutorial [HERE](http://howtonode.org/deploying-node-upstart-monit)

## @TODO: ##

* add a Monit Cronjob to run periodically, to make sure Monit stays running
* add some way to restart the server automatically when server files are changed
<commit_msg>added some changes to the readme<commit_after>## STARTER NODE/EXPRESS/ANGULAR WEBAPP ##

### System Configs ###

**Created and Tested With:**

* Mac OSX 10.9.2
* Virtualbox 4.3.8 r92456
* Vagrant 1.4.3
* Grunt v0.1.13
* Bower version 1.2.8

* Uses Grunt Watch, which can be fully appreciated with the [LiveReload](https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei/details) plugin in Chrome

**Server Side Dependencies:**

* Node v0.10.26
	* Express

These are all installed when you run the bootstrap file. Specific versions of the node modules can be found in the www/package.json file.

**Front End Dependencies:**
* AngularJS

Versions of all of these can be found in the package.json file and the bower.json file.

### Getting Started ###

**To run this VM, you MUST have Vagrant installed.* **

**After cloning the repo, start up the Vagrant box:**

`vagrant up`

`vagrant ssh`

`cd /vagrant`

`sh bootstrap.sh`

**Then, from your local machine:**

`cd www/public_src/libs`

`bower install`

`cd ../../`

`grunt build`

Navigate to `http://localhost:8082` in your browser to see the action!

** Run grunt watch for live editing/minification: **

`grunt watch`

*Actually, you don't need Vagrant. As an alternative, you can run the live versions of the bootstrap and setup confs(found in the livescripts directory) in your Debain-based server environment.

### Server Editing ###

Keep in mind that changes made on the server require server restarts, so Node can reload the changes:

`sudo stop nodeserver`

`sudo start nodeserver`

Error logs can be found here: `/var/log/nodeserver.sys.log`


### Live Deployment ###

For the live versions of the bootstrap and config files, look in the livescripts directory.

The .conf files should go into the /var directory, and the bootstrap.sh file should be in the /var/www directory.

### About the Server ###

The node Express server will run as a daemon script, and will restart after reboot using Upstart (installed in the bootstrap. See the nodeserver.conf file for settings).

It is kept running using Monit, which will keep it running through errors and problems (see nodeservermonit.conf for more info)

###Credits:###
* Originally based off of [<NAME>'s Angular Skeleton](https://github.com/jlongnbt/angular-skeleton "jlongnbt repo")
* Monit and Upstart setup based off of the tutorial [HERE](http://howtonode.org/deploying-node-upstart-monit)

## @TODO: ##

* add a Monit Cronjob to run periodically, to make sure Monit stays running
* add some way to restart the server automatically when server files are changed

{'fraction_non_alphanumeric': 0.09528646891507517, 'fraction_numerical': 0.011783827712312069, 'mean_word_length': 4.287862513426423, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 6, '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': '154980', 'n_tokens_mistral': 1572, 'n_tokens_neox': 1489, 'n_words': 644}