Skip to content
This repository has been archived by the owner on Apr 20, 2020. It is now read-only.

Latest commit

 

History

History
55 lines (35 loc) · 1.05 KB

README.md

File metadata and controls

55 lines (35 loc) · 1.05 KB

ito - Upload API

Public API for supplying and verifying pseudonyms of users confirmed infected

Tests

Requirements

  • Python 3.8+
  • MongoDB database
Quick start Python 3.8 (Debian based Linux)
sudo apt install python3.8 python3.8-pip
sudo update-alternatives --config python3

Then select the correct Python version.

Installation

Install and initialize Poetry. Run

poetry install
Quick start Poetry (UNIX)
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
source ~/.poetry/env

Configuration

Copy the config.py.example to config.py and adjust the database connection URI.

Development

Run the local Flask development server using

export POETRY_ENV="development"
poetry run flask run

Then send a POST request to http://localhost:5000/v0/cases/report for example.