Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
4b2baab
added fastapi/request/uvicorn script and endpoint+callbacks in Dash app
BSchelle Apr 1, 2026
a7bc22c
fix(localstack): fix LocalStack config for local dev
BSchelle Apr 1, 2026
884da3e
quick fix of callbacks & requests function for JSON+pdf
BSchelle Apr 1, 2026
920ab10
added debug print func + config boto3
BSchelle Apr 1, 2026
9107b13
OG yml
BSchelle Apr 1, 2026
f543a7d
added fastapi/uvicorn dependencies
BSchelle Apr 1, 2026
540abde
minor fixes
BSchelle Apr 1, 2026
dbd34a7
updated commentaries
BSchelle Apr 2, 2026
b390e03
added parent path to assets/template.json
BSchelle Apr 2, 2026
ce3575b
modified Localstack service
BSchelle Apr 2, 2026
279b438
updated readme for S3 local upload from Dash app
BSchelle Apr 2, 2026
6d346a3
minor updated readme
BSchelle Apr 2, 2026
25d3f55
suppression of JSON printing on UI
BSchelle Apr 2, 2026
8753d40
deleted old docker-compose
BSchelle Apr 2, 2026
7478054
exploration of Django Rest Framework, status: working local
BSchelle Apr 2, 2026
0326ed7
increased timeout of request response for sync parsing+embedding
BSchelle Apr 2, 2026
6efc6ec
changed 200 to 201 status code and filename to PDF title in validatio…
BSchelle Apr 7, 2026
267493b
renamed and mved fastapi, might be not needed bc DRF
BSchelle Apr 7, 2026
6fe99de
updated instruction for local front to S3 PDF upload
BSchelle Apr 7, 2026
6564c41
updated comms
BSchelle Apr 7, 2026
0835fcb
mved fastAPI script to dashapp tree
BSchelle Apr 7, 2026
b8521ea
minor
BSchelle Apr 7, 2026
03a95ad
modified README with up to date instructions, modified api.py to uplo…
BSchelle Apr 7, 2026
fa34a18
Merge branch 'dash-app' into drf-api-front-upload
BSchelle Apr 7, 2026
d5e4a09
minor comm fix
BSchelle Apr 7, 2026
9a3ca37
changed README for clarity on dash upload service, added safeguard fo…
BSchelle Apr 13, 2026
76a5f72
Merge branch 'drf-api-front-upload' of github.com:BSchelle/14_EUFactF…
BSchelle Apr 13, 2026
29ed852
added django url from .env, changed feedback print messages for EN
BSchelle Apr 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ EU Fact Force is a collaborative platform developed by [EUPHA](https://www.eupha
### Use Case

> **Marie**, a health communicator at a national public health association, sees a viral post claiming "vaccines cause autism." She needs to respond quickly with solid evidence.
>
>
> She searches **"vaccines autism"** on EU Fact Force and immediately sees:
> - An interactive graph showing 15+ peer-reviewed articles that refute this claim
> - The scientific consensus: **"Refuted with high confidence"**
> - Current disinformation trends: 1,200 mentions this week, peak in France/Belgium
> - Key evidence to cite in her response
>
>
> **Time to find relevant evidence: <30 seconds**

## Key Features
Expand Down Expand Up @@ -112,7 +112,7 @@ uv run pytest

### Déploiement de l'application

L'application se compose d'un serveur Django, d'une base PostgreSQL (avec pgvector) et de LocalStack pour le stockage S3.
L'application se compose d'un serveur Django, d'une base PostgreSQL (avec pgvector) et de LocalStack pour le stockage S3.
Pour déployer et utiliser l'application en local :

**1. Prérequis**
Expand Down Expand Up @@ -176,3 +176,22 @@ AWS_S3_REGION_NAME=eu-west-1
```

Sans ces variables, l'application utilise le stockage fichier local par défaut.


**7. Démarrer la web-app d'ingestion vers le S3 local**

Pour permettre l'upload d'un couple PDF/métadatas vers le serveur S3 :

**Lancer les services (Postgres et LocalStack) et le serveur Django (étapes 3 à 6)**

**Démarrer la webapp Dash**

```bash
uv run python eu_fact_force/dash-app/app.py
```

**Optionnel: Créer le bucket de sauvegarde si non disponible**

```bash
docker exec -it 14_eufactforce_fork-localstack-1 awslocal s3 mb s3://eu-fact-force-files
```
30 changes: 16 additions & 14 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,22 @@ services:
retries: 5

localstack:
image: localstack/localstack:latest
ports:
- 4566
environment:
SERVICES: s3
PERSISTENCE: 1
AWS_DEFAULT_REGION: ${AWS_S3_REGION_NAME:-eu-west-1}
AWS_STORAGE_BUCKET_NAME: ${AWS_STORAGE_BUCKET_NAME:-eu-fact-force-files}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID:-test}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY:-test}
DEBUG: ${DEBUG:-0}
volumes:
- ./s3:/var/lib/localstack
- ./docker/localstack/init-ready.d:/etc/localstack/init/ready.d:ro
image: localstack/localstack:3.3 #latest conflicted w/ front
ports:
- "4566:4566" #required listening port for
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

il ne faut pas utiliser le port de host : https://outline.services.dataforgood.fr/s/25739714-363d-4f17-8dba-632eb398b633#h-ii-lancer-une-application

Tu peux changer vers la valeur précédente :
ports:
- 4566

environment:
SERVICES: s3
PERSISTENCE: 1
AWS_DEFAULT_REGION: ${AWS_S3_REGION_NAME:-eu-west-1}
AWS_STORAGE_BUCKET_NAME: ${AWS_STORAGE_BUCKET_NAME:-eu-fact-force-files}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID:-test}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY:-test}
DEBUG: ${DEBUG:-0}
LOCALSTACK_ACKNOWLEDGE_ACCOUNT_REQUIREMENT: 1 #required licensing
volumes:
- ./s3:/var/lib/localstack
- ./docker/localstack/init-ready.d:/etc/localstack/init/ready.d:ro
- /var/run/docker.sock:/var/run/docker.sock

volumes:
postgres_data:
1 change: 1 addition & 0 deletions eu_fact_force/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"django.contrib.messages",
"django.contrib.staticfiles",
"eu_fact_force.ingestion",
"rest_framework",
]

MIDDLEWARE = [
Expand Down
Loading