Objectif : créer un interrogatoire médical permettant de fournir un premier diagnostic à distance.
docker compose up -d
docker exec -ti cassandra-node-x
SOURCE '/schema.cql';
COPY covid_keyspace.covid_data (Fever, Tiredness, Dry_Cough, Difficulty_in_Breathing, Sore_Throat, None_Symptom, Pains, Nasal_Congestion, Runny_Nose, Diarrhea, None_Experiencing, Age_0_9, Age_10_19, Age_20_24, Age_25_59, Age_60_plus, Gender_Female, Gender_Male, Gender_Transgender, Severity_Mild, Severity_Moderate, Severity_None, Severity_Severe, Contact_Dont_Know, Contact_No, Contact_Yes, Country) FROM '/covid.csv' WITH HEADER = TRUE;
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
yarn --cwd react-app/ install
flask run --debug
yarn --cwd react-app/ start
- back-end: http://localhost:5000/api
- front-end: http://localhost:3000
Utiliser la commande suivante pour tester l'API (avec HTTPie).
python -m httpie POST localhost:5000/api "gender"="female" "age":=42 "contact"="no" "none_experiencing":=true "prompt"="I have fever and diarrhea." "severity"="mild"