<commit_before>Statik-Website
==============
This repository will contain the front end website source for Statik.<commit_msg>Add instructions for setting up a dev server<commit_after>Statik-Website
==============
This repository will contain the front end website source for Statik.

Running the server
------------------

In order to contribute to the site, you'll want to setup a development server. Follow the steps below in order to do so:

* Clone the repository
* Ensure that node, npm and mongodb's server are installed
  * `sudo apt-get install node npm mongodb-server`
* Ensure you can connect to your MongoDB server with the `mongo` command
  * If not, try running ``sudo mkdir -p /data/db/ && sudo chown `id -u` /data/db``
* Run `npm install` and wait for the dependencies to install
* Run `node server.js` to run the development server
* Visit [http://localhost:3000](http://localhost:3000) in your browser

You can choose an alternative port by setting the PORT environmental variable. Running something like `PORT=8080 node server.js` should work.
{'fraction_non_alphanumeric': 0.10828625235404897, 'fraction_numerical': 0.011299435028248588, 'mean_word_length': 4.262376237623762, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '1475534', 'n_tokens_mistral': 288, 'n_tokens_neox': 265, 'n_words': 142}