How akashraajputh/bikebid works
BikeBid is a motorcycle marketplace with timed auctions. Buyers browse listings and auctions, authenticate, bid, and review their activity; administrators manage listings, auctions, users, and analytics. The backend persists marketplace state in PostgreSQL, runs auction lifecycle checks, and provides authenticated live updates. The frontend is a React single-page application communicating with the API over HTTP and WebSockets. Edges use README statements or shown/import-index references; unsampled implementation details are not expanded beyond documented capabilities.
Main entry points: main.py FastAPI entry · dependencies.py Request dependencies · auction_queries.py Auction query helpers · __init__.py Marketplace entities
Components 21
Buyer application
- Web application
frontend/src/App.tsx
API workflows
- Authentication
backend/app/api/auth.py - Motorcycle discovery
backend/app/api/motorcycles.py - Auction browsing
backend/app/api/auctions.py - Admin operations
backend/app/api/admin.py - Buyer dashboard and activity
backend/app/api/dashboard.py - Bid and auction history
backend/app/api/user_activity.py
Auction services
- Bidding and notifications
backend/app/api/auctions.py - Auction query helpers
backend/app/services/auction_queries.py - Response serialization
backend/app/services/serializers.py - Auction lifecycle
backend/app/services/lifecycle.py - Live updates
backend/app/services/realtime.py
Identity and platform
- FastAPI entry
backend/app/main.py - Request and response schemas
backend/app/schemas - Tokens and authorization
backend/app/core/security.py - Request dependencies
backend/app/core/dependencies.py
Persistence
- Demo data seeding
backend/app/services/seed.py - Marketplace entities
backend/app/models/__init__.py - Async database sessions
backend/app/core/database.py - PostgreSQL
Other components
- Buyer or admin
Connections 30
- Buyer or admin → Web application: uses
README.md - Web application → FastAPI entry: HTTP and WebSocket
README.md - FastAPI entry → Authentication: mounts routes
backend/app/main.py - FastAPI entry → Auction browsing: mounts routes
backend/app/main.py - FastAPI entry → Auction lifecycle: starts task
backend/app/main.py - FastAPI entry → Demo data seeding: seeds data
backend/app/main.py - FastAPI entry → Live updates: serves updates
README.md - Authentication → Tokens and authorization: creates and checks tokens
backend/app/api/auth.py - Authentication → Request dependencies: requires current user
backend/app/api/auth.py - Authentication → Request and response schemas: validates payloads
backend/app/api/auth.py - Motorcycle discovery → Response serialization: serializes listings
backend/app/api/motorcycles.py - Auction browsing → Auction query helpers: loads auction details
backend/app/api/auctions.py - Auction browsing → Response serialization: formats auction responses
backend/app/api/auctions.py - Bidding and notifications → Live updates: broadcasts updates
backend/app/api/auctions.py - Bidding and notifications → Request dependencies: requires authenticated buyer
backend/app/api/auctions.py - Admin operations → Auction query helpers: loads auction details
backend/app/api/admin.py - Admin operations → Response serialization: formats responses
backend/app/api/admin.py - Admin operations → Request dependencies: requires admin
backend/app/api/admin.py - Buyer dashboard and activity → Auction query helpers: loads auction data
backend/app/api/dashboard.py - Bid and auction history → Auction query helpers: loads auction data
backend/app/api/user_activity.py - Request dependencies → Tokens and authorization: decodes access tokens
backend/app/core/dependencies.py - Request dependencies → Async database sessions: gets session
backend/app/core/dependencies.py - Auction query helpers → Marketplace entities: queries entities
backend/app/services/auction_queries.py - Response serialization → Marketplace entities: serializes entities
backend/app/services/serializers.py - Auction lifecycle → Async database sessions: opens sessions
backend/app/services/lifecycle.py - Auction lifecycle → Marketplace entities: updates auction state
backend/app/services/lifecycle.py - Demo data seeding → Async database sessions: opens sessions
backend/app/services/seed.py - Demo data seeding → Marketplace entities: creates demo entities
backend/app/services/seed.py - Async database sessions → PostgreSQL: persists state
README.md - Marketplace entities → Async database sessions: maps entities
backend/app/models/__init__.py