rideshare-api / README.md
Sherry245's picture
Fix HF metadata: colorTo + short_description length
5bfe2c7
|
Raw History Blame Contribute Delete
1.07 kB
metadata
title: RideShare API
emoji: πŸš•
colorFrom: indigo
colorTo: green
sdk: docker
app_port: 8000
pinned: false
license: apache-2.0
short_description: FastAPI backend for the RideShare Android demo.

RideShare API

FastAPI backend powering the RideShare Android demo. PostgreSQL/PostGIS data lives in Supabase; this service exposes the REST + WebSocket surface the mobile app consumes.

Health check

GET /health β†’ {"status":"ok"}

Required secrets (set in HF Space β†’ Settings β†’ Secrets)

Key Source
DATABASE_URL Supabase Transaction Pooler URI with postgresql+asyncpg:// prefix
SUPABASE_URL Supabase project URL
SUPABASE_JWT_SECRET Supabase β†’ Settings β†’ API β†’ JWT Settings β†’ JWT Secret
GOOGLE_MAPS_KEY Google Cloud project key with Directions API enabled
STRIPE_SECRET_KEY Stripe dashboard (test mode)
STRIPE_PUBLISHABLE_KEY Stripe dashboard (test mode)

App reads them at runtime via pydantic-settings. Missing required vars will crash on boot β€” check the build logs.