<commit_before># Legit-o-Meter

Legit-o-Meter is an interactive digital learning tool for students and teachers to evaluate the legitimacy of online news. This app is part of the [Fake the News](https://fakenews.open-austin.org/unit1/Feb_26_wireframes.html) Project funded by Mozilla Hive ATX.

A staged version of the site is hosted at: test.missionfake.news

## Roadmap

**Current Status:** Our team is actively developing a working prototype led by @rallyjinx and supported by @mateoclarke.

**Milestones:**

- March 28, 2017: Galvanize Capstone Presentation

## Contributing

TODO

## Tech Stack

This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app). It uses [Node.js](https://nodejs.org/en/) and [Express.js](https://expressjs.com/) with [Knex](http://knexjs.org/) providing a query building for a Postgres datastore. The project uses [Semantic UI](https://semantic-ui.com/) framework for styling UI components.

To get setup:

1. Download Node
   - `npm install`

2. Download Postgres
   - We used the Postgres Mac app. Once you open it for the first time, initialize it.
   - You will probably need to add this to your bash or zsh config
   - `export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin`

3. Create a database
   - Install [knex.js](http://knexjs.org/)
   - `npm install knex -g`
   - Create the database
   - `createdb legit-o-meterdb`
   - Migrate and Seed the database
   - `knex migrate:latest`
   - `knex seed:run `

4. Run both the front end React server and the backend Node server
  - React
    - `npm start`
  - Node
    - `npm run start:dev`
    
 ## Entity Relationship
[Link to image of object_model](https://cloud.githubusercontent.com/assets/5697474/24621501/4915c122-1867-11e7-960f-3a37c635f47b.JPG)<commit_msg>Update documentation for running servers<commit_after># Legit-o-Meter

Legit-o-Meter is an interactive digital learning tool for students and teachers to evaluate the legitimacy of online news. This app is part of the [Fake the News](https://fakenews.open-austin.org/unit1/Feb_26_wireframes.html) Project funded by Mozilla Hive ATX.

A staged version of the site is hosted at: test.missionfake.news

## Roadmap

**Current Status:** Our team is actively developing a working prototype led by @rallyjinx and supported by @mateoclarke.

**Milestones:**

- March 28, 2017: Galvanize Capstone Presentation

## Contributing

TODO

## Tech Stack

This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app). It uses [Node.js](https://nodejs.org/en/) and [Express.js](https://expressjs.com/) with [Knex](http://knexjs.org/) providing a query building for a Postgres datastore. The project uses [Semantic UI](https://semantic-ui.com/) framework for styling UI components.

To get setup:

1. Download Node
   - `npm install`

2. Download Postgres
   - We used the Postgres Mac app. Once you open it for the first time, initialize it.
   - You will probably need to add this to your bash or zsh config
   - `export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin`

3. Create a database
   - Install [knex.js](http://knexjs.org/)
   - `npm install knex -g`
   - Create the database
   - `createdb legit-o-meterdb`
   - Migrate and Seed the database
   - `knex migrate:latest`
   - `knex seed:run `

4. Run both the front-end React client app and the back-end Node server
  - React Front-End Client App
    - `npm start`
  - Node/Express Back-end Server
    - `npm run server`

 ## Entity Relationship
[Link to image of object_model](https://cloud.githubusercontent.com/assets/5697474/24621501/4915c122-1867-11e7-960f-3a37c635f47b.JPG)
{'fraction_non_alphanumeric': 0.10242587601078167, 'fraction_numerical': 0.02857142857142857, 'mean_word_length': 3.776061776061776, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, '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': '1610358', 'n_tokens_mistral': 1245, 'n_tokens_neox': 1148, 'n_words': 408}