Dominio: adonisgagliardi.com
API: https://api.adonisgagliardi.com
- Connetti questo repo a Render (Settings → Blueprints → New → seleziona questo repo che contiene
render.yaml). - Render creerà:
fsf-api(Web Service, Docker, health/api/health)fsf-postgres(DB gestito)fsf-redis(Redis gestito)
- Primo deploy: al termine avrai un URL tipo
https://fsf-api-XXXX.onrender.comfunzionante.
- Vai a Zone DNS del dominio
adonisgagliardi.com. - Crea un record CNAME:
- Nome (Host):
api - Target:
<NOME-SERVIZIO>.onrender.com(lo trovi nella pagina del servizio su Render) - TTL: 300 (default OK)
- Nome (Host):
- In Render →
fsf-api→ Custom Domains →api.adonisgagliardi.com→ Verify → abilita SSL automatico (Let's Encrypt). - Test:
https://api.adonisgagliardi.com/api/health→{"status":"ok"}
- Vai su Settings → Secrets and variables → Actions nel repo, aggiungi:
RENDER_DEPLOY_HOOK= URL del Deploy Hook del serviziofsf-api(Render → Service → Deploy Hooks → Copy URL).
- Ogni push su
mainlancia la CI e chiama il Deploy Hook per aggiornare l'app su Render.
GET /api/health— health checkPOST /api/analyze— body:{"url":"https://.../product"}→ ritorna titolo, prezzo stimato, risk score + prove (MVP).
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
uvicorn backend.main:app --host 0.0.0.0 --port 8000
# http://localhost:8000/api/healthdocker build -t fsf-api .
docker run -p 8000:8000 fsf-apiImporta POSTMAN_collection.json e imposta api_base = https://api.adonisgagliardi.com.
/api/analyze è MVP: usa regole basilari (prezzo anomalo, shipping indicativa) e placeholder per età dominio.
Per produzione collegare: WHOIS, reverse-image, price-compare e logging.