Sign inSign up

roboflowhnstesting01/turf-backend

By roboflowhnstesting01

•Updated about 1 month ago

FastAPI backend for TurfVoice auth, bookings, pricing, availability.

Image
Databases & storage
0

51

roboflowhnstesting01/turf-backend repository overview

⁠TurfVoice Backend

FastAPI backend for TurfVoice, a sports and turf facility booking platform. Provides authentication, resource/availability management, pricing, booking lifecycle (create, cancel, reschedule), membership, and an AI booking assistant built with CrewAI.

⁠Features

  • JWT authentication (/auth/signup, /auth/login, /auth/me)
  • Facility/resource listing and live availability
  • Server-authoritative pricing (base rate, peak surcharge, member discount)
  • Booking lifecycle with preview → confirm workflow for create, cancel, and reschedule
  • Membership activation (monthly/annual) persisted to MongoDB
  • AI assistant (/assistant/chat) using CrewAI + Groq, with tool-calling for real booking data — never invents availability or prices
  • LiveKit voice token minting (/voice/token) for the companion turf-worker voice agent

⁠Run

docker run -p 8000:8000 \
  -e MONGODB_URI=mongodb+srv://... \
  -e JWT_SECRET_KEY=your-secret \
  -e GROQ_API_KEY=your-groq-key \
  -e LIVEKIT_URL=wss://your-project.livekit.cloud \
  -e LIVEKIT_API_KEY=your-livekit-key \
  -e LIVEKIT_API_SECRET=your-livekit-secret \
  roboflowhnstesting01/turf-backend:latest

⁠Environment variables

VariableDescription
MONGODB_URIMongoDB Atlas connection string
JWT_SECRET_KEYSecret used to sign auth JWTs
GROQ_API_KEYGroq API key for the LLM assistant
LIVEKIT_URLLiveKit project URL
LIVEKIT_API_KEY / LIVEKIT_API_SECRETLiveKit credentials for minting voice tokens
OPENAI_API_KEYOptional — fallback TTS provider for the voice worker

⁠API docs

Interactive OpenAPI docs are available at /docs once the container is running.

  • roboflowhnstesting01/turf-frontend — Next.js frontend
  • roboflowhnstesting01/turf-worker — LiveKit voice agent worker (shares this backend's auth and assistant logic)

Tag summary

Content type

Image

Digest

sha256:222958bc2…

Size

3.4 GB

Last updated

about 1 month ago

docker pull roboflowhnstesting01/turf-backend