CoolFace
Apppublic

Reign03/farmers-awareness-api

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
App README

Farmers Awareness API (FastAPI)

Backend API for the Farmers Awareness mobile app.

Required Space Secrets

Set these in Space Settings -> Variables and secrets:

  • —DATABASE_URL
  • —SECRET_KEY
  • —HF_API_TOKEN
  • —OPENWEATHER_API_KEY

Optional:

  • —DEBUG (default False)
  • —ALLOWED_ORIGINS (default ["*"])
  • —API_V1_PREFIX (default /api/v1)

Health check

  • —GET /health

Notes

  • —This Space uses Docker (sdk: docker) and serves on port 7860.
  • —Mobile app base URL should point to: https://<your-space-name>.hf.space/api/v1