/vitimas-da-intolerancia

Primary LanguagePythonGNU Lesser General Public License v3.0LGPL-3.0

#VítimasDaIntolerância

Hate crimes monitor for political motivated assaults in Brazil.

Install

Requires a Google account, Python 3.7 and Redis.

  1. Install the dependencies with pip install -r requirements.txt
  2. Create a Google Sheets file
  3. Create two spreadsheets (tabs) in this file
  4. Use the files from tests/fixtures to fill in these spreadsheets
  5. Then copy .env.sample as .env and setup Redis access and the Google Sheets data
    1. The unique ID from the Google Sheet URL is the SPREADSHEET_ID
    2. The gid URL parameter Google generates when exporting each spreadsheet as CSV is the value of CASES_SPREADSHEET_GID and STORIES_SPREADSHEET_GID

Running the server

Spin up the server with:

$ python run.py

Tests

Run tests with:

$ pytest