turf_challenge

Start

  1. git clone https://github.com/techopus/turf_challenge.git
  2. Go to project folder
  3. pip install -r requirements.txt
  4. Having mongodb installed, connect to the localhost(here localhost:27017): sudo systemctl start mongod
  5. run python app.py

To check JSON output for endpoint calls

  1. Go to localhost http://127.0.0.1:5000
  2. Retrieve pitches with .../pitches, their ids with .../pitches/id and so on.

Test run

  1. In order to test the logic function running fine, run python -m unittest test.py