<commit_before>CommSphere
======

Event Tracking Software

# Quick setup guide
* Install [mongoDB](https://www.mongodb.org/downloads) and run mongorestore on the [commsphere_root]/data/commsphere directory
* Install [node.js](https://nodejs.org/download/)
* Navigate to [commsphere_root]/src/ and run 'npm install'
* Then run 'node app.js' from [commsphere_root]/src/

# Requirements
* JQuery 1.10.2 compatible browser (Internet Explorer 8+, Firefox, Opera, Chrome)
* Node.js
* MongoDB
* A folder called /sec/certs with server-key.pem, server-cert.pem, and gd_bundle-g2.pem for https.  Self-signed is fine but certs must be present
*  localhost/non-signed testing will be a bit wonky, and http has been set up only to forward to https.


## Handy things to npm install -g
* forever (forever start/stop/list [app.js] to run/stop/list-running-apps given node.js application as a service in background)
* nodemon (start and run [app.js], runs node [app.js] in perpetuity.  Automatically restarts upon changing system js files)

##Documentation
* CommSphere [Confluence](http://code.phiresearchlab.org/confluence/display/COM/CommSphere)
* Server code is located in src.  To run, clone this project, move into the src directory, npm install, then node app.js
* Data for MongoDB database is loaded in Data.  To run, clone this project, move into the data directory, then run mongorestore on the commsphere directory.

##Issue Tracker<commit_msg>Updating ReadMe with a "How to run in HTTPS" section<commit_after>CommSphere
======

Event Tracking Software

# Quick setup guide
* Install [mongoDB](https://www.mongodb.org/downloads) and run mongorestore on the [commsphere_root]/data/commsphere directory
* Install [node.js](https://nodejs.org/download/)
* Navigate to [commsphere_root]/src/ and run 'npm install'
* Then run 'node app.js' from [commsphere_root]/src/

# Requirements
* JQuery 1.10.2 compatible browser (Internet Explorer 8+, Firefox, Opera, Chrome)
* Node.js
* MongoDB
* A folder called /sec/certs with server-key.pem, server-cert.pem, and gd_bundle-g2.pem for https.  Self-signed is fine but certs must be present
*  localhost/non-signed testing will be a bit wonky, and http has been set up only to forward to https.


## Handy things to npm install -g
* forever (forever start/stop/list [app.js] to run/stop/list-running-apps given node.js application as a service in background)
* nodemon (start and run [app.js], runs node [app.js] in perpetuity.  Automatically restarts upon changing system js files)

##Documentation
* CommSphere [Confluence](http://code.phiresearchlab.org/confluence/display/COM/CommSphere)
* Server code is located in src.  To run, clone this project, move into the src directory, npm install, then node app.js
* Data for MongoDB database is loaded in Data.  To run, clone this project, move into the data directory, then run mongorestore on the commsphere directory.

##HTTPS
* To Enable HTTPS, turn the flag in [commsphere_root]/src/server/lib/envProperties.js to 'true' and update the location of the proper certificates

##Issue Tracker
{'fraction_non_alphanumeric': 0.09664822648877319, 'fraction_numerical': 0.0039049788480312398, 'mean_word_length': 4.609489051094891, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1806675', 'n_tokens_mistral': 963, 'n_tokens_neox': 928, 'n_words': 365}