How pastaisfine/serve-easy works
ServeEasy is a UTM campus marketplace. Students browse and search listings, services, shops, cafeterias and menus; they create purchase requests, bookings or meal orders, then track updates and history. Providers manage listings and meal operations, while profiles and notifications support those workflows. The frontend’s server-side pages/actions call the FastAPI API, which authenticates users and persists domain records in PostgreSQL; photos use object storage. Telegram is an optional, read-only discovery channel. Edges follow README claims or shown imports/calls; unsampled feature wiring is left unasserted.
Main entry points: main.py FastAPI application · models Marketplace entities · auth.py JWT authentication · requests.py Purchase requests
Components 24
Web experience
- Marketplace pages
frontend/app/(tabs) - Sign-in and signup
frontend/app/auth - Server API client
frontend/lib/api.ts - Write API client
frontend/lib/api-write.ts - Auth session
frontend/lib/auth/server.ts
API workflows
- FastAPI application
backend/app/main.py - JWT authentication
backend/app/auth.py - Marketplace listings
backend/app/routers/listings.py - Purchase requests
backend/app/routers/requests.py - Cafeteria discovery
backend/app/routers/cafeterias.py - Meal orders and management
backend/app/routers/meals.py - Service listings
backend/app/routers/services.py - Student enterprises
backend/app/routers/shops.py - Student profiles
backend/app/routers/me.py - Notification inbox
backend/app/routers/notifications.py - Image uploads
backend/app/routers/uploads.py
Marketplace data
- Request and response schemas
backend/app/schemas.py - Marketplace entities
backend/app/models
External integrations
- PostgreSQL
backend/app/db.py - Neon object storage
- Telegram bot
backend/app/bot/telegram_bot.py - Read-only bot queries
backend/app/bot/queries.py - Neon Auth
Other components
- Campus user
Connections 39
- Campus user → Marketplace pages: browses and orders
README.md - Campus user → Sign-in and signup: signs in
README.md - Marketplace pages → Server API client: loads data
- Marketplace pages → Write API client: submits actions
- Sign-in and signup → Auth session: uses session
- Server API client → FastAPI application: calls API
- Write API client → FastAPI application: calls API
- FastAPI application → Marketplace listings: routes requests
backend/app/main.py - FastAPI application → Cafeteria discovery: routes requests
backend/app/main.py - FastAPI application → Meal orders and management: routes requests
backend/app/main.py - FastAPI application → Purchase requests: routes requests
backend/app/main.py - FastAPI application → Notification inbox: routes requests
backend/app/main.py - FastAPI application → Service listings: routes requests
backend/app/main.py - FastAPI application → Student enterprises: routes requests
backend/app/main.py - FastAPI application → Student profiles: routes requests
backend/app/main.py - FastAPI application → Image uploads: routes requests
backend/app/main.py - FastAPI application → Telegram bot: starts optional bot
backend/app/main.py - JWT authentication → Neon Auth: verifies JWT
backend/app/auth.py - Marketplace listings → JWT authentication: requires user
backend/app/routers/listings.py - Purchase requests → JWT authentication: requires user
backend/app/routers/requests.py - Meal orders and management → JWT authentication: requires user
backend/app/routers/meals.py - Service listings → JWT authentication: requires user
backend/app/routers/services.py - Student profiles → JWT authentication: requires user
backend/app/routers/me.py - Notification inbox → JWT authentication: requires user
backend/app/routers/notifications.py - Marketplace listings → Marketplace entities: reads and writes
backend/app/routers/listings.py - Purchase requests → Marketplace entities: reads and writes
backend/app/routers/requests.py - Cafeteria discovery → Marketplace entities: reads
backend/app/routers/cafeterias.py - Meal orders and management → Marketplace entities: reads and writes
backend/app/routers/meals.py - Service listings → Marketplace entities: reads and writes
backend/app/routers/services.py - Student enterprises → Marketplace entities: reads
backend/app/routers/shops.py - Student profiles → Marketplace entities: reads and writes
backend/app/routers/me.py - Notification inbox → Marketplace entities: reads
backend/app/routers/notifications.py - Marketplace listings → PostgreSQL: queries
backend/app/routers/listings.py - Purchase requests → PostgreSQL: queries
backend/app/routers/requests.py - Meal orders and management → PostgreSQL: queries
backend/app/routers/meals.py - Image uploads → Neon object storage: stores images
- Telegram bot → Read-only bot queries: dispatches searches
backend/app/bot/telegram_bot.py - Read-only bot queries → PostgreSQL: read-only queries
- Purchase requests → Notification inbox: creates updates
backend/app/routers/requests.py