How yamunasrisangana/quick-basket works
Quick Basket is an administrative API for platform oversight. The evidenced workflows are admin login and protected access, plus a dashboard overview that counts customers, merchants, and products. Its visible domain model covers users, customer profiles and addresses, merchants, categories, and products; the README does not document broader admin operations. Edges reflect shown router registration, calls, and model relationships. Other model files are included as domain components, but their runtime use is not inferred.
Main entry points: auth.py Authentication routes · dashboard.py Dashboard overview · dependencies.py Admin authorization · database.py Database sessions
Components 16
API surface
- API application
app/main.py - Authentication routes
app/routers/auth.py - Dashboard overview
app/routers/dashboard.py
Admin access
- Login schemas
app/schemas/auth.py - Admin authorization
app/core/dependencies.py - Token and password security
app/core/security.py
Platform domain
- User accounts
app/models/user.py - Customer profiles
app/models/customer.py - Customer addresses
app/models/customer_address.py - Merchants
app/models/merchant.py - Product categories
app/models/category.py - Products
app/models/product.py
Persistence and settings
- Database sessions
app/database.py - Application settings
app/config.py - PostgreSQL database
Other components
- Administrator
Connections 26
- Administrator → API application: uses API
README.md - API application → Authentication routes: registers
app/main.py - API application → Dashboard overview: registers
app/main.py - Administrator → Authentication routes: submits login
README.md - Authentication routes → Login schemas: validates with
app/routers/auth.py - Authentication routes → Database sessions: queries
app/routers/auth.py - Authentication routes → User accounts: looks up
app/routers/auth.py - Authentication routes → Token and password security: verifies and signs
app/routers/auth.py - Authentication routes → Admin authorization: protects profile
app/routers/auth.py - Admin authorization → Database sessions: queries
app/core/dependencies.py - Admin authorization → User accounts: loads account
app/core/dependencies.py - Admin authorization → Token and password security: decodes token
app/core/dependencies.py - Dashboard overview → Admin authorization: requires admin
app/routers/dashboard.py - Dashboard overview → Database sessions: counts records
app/routers/dashboard.py - Dashboard overview → Customer profiles: counts
app/routers/dashboard.py - Dashboard overview → Merchants: counts by status
app/routers/dashboard.py - Dashboard overview → Products: counts
app/routers/dashboard.py - User accounts → Customer profiles: has profile
app/models/user.py - User accounts → Merchants: has profile
app/models/user.py - Customer profiles → Customer addresses: has addresses
app/models/customer.py - Merchants → Product categories: has categories
app/models/merchant.py - Merchants → Products: has products
app/models/merchant.py - Products → Product categories: belongs to
app/models/product.py - Database sessions → PostgreSQL database: connects to
- API application → Application settings: configures
app/main.py - Database sessions → Application settings: reads connection config
app/database.py