<commit_before><commit_msg>Add server setup docs<commit_after>SETUP
#####

1. Install Git
    yum install git -y
2. Install node and npm
    yum install nodejs npm --enablerepo=epel -y
3. Configure port-forwarding (must be super-user)
    sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to 8080
4. Clone the repo
    git clone https://github.com/najork/myne.git
5. Go to the server directory (make sure you're on the right branch!)
    cd myne/server/
6. Install required modules
    npm install
7. Initialize database
    sqlite3 db/app-data.db < db/scripts/create_tables.sql
8. Launch server (do NOT do this as a super-user)
    node server.js


SAMPLE SQLITE COMMANDS
######################

1. Go to the db directory
    cd $(myne_dir)/server/db/
2. Launch SQLite with the app db
    sqlite3 app-data.db

sqlite> insert into schools(name) values ("Michigan");
sqlite> insert into schools(name) values ("Ohio State");
sqlite> insert into games(home_team_id, away_team_id, date) values (1,2,'2015-11-28 12:00:00.000');
sqlite> .exit
{'fraction_non_alphanumeric': 0.12060778727445394, 'fraction_numerical': 0.03513770180436847, 'mean_word_length': 3.6026200873362444, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 7, 'https://': 1, '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': '5285692', 'n_tokens_mistral': 382, 'n_tokens_neox': 347, 'n_words': 132}