How mameo007/movein-cart-api works
Move-In Day Cart Tracker supports the move-in checkout workflow: RAs view cart availability, record a resident checkout and due time, then mark the cart returned. Staff use a password-protected admin area to manage inventory, sessions, and the site timezone. The React client routes users into those workflows and calls a FastAPI API backed by relational storage. The graph preserves the documented admin capabilities; some frontend component behavior and deployment details were not sampled, so those connections rely on README evidence.
Main entry points: admin.py Admin operations · carts.py Cart checkout and return · AdminPage.jsx Admin console · settings.py Public settings
Components 20
Web client
- Page routing
frontend/src/App.jsx - Cart availability
frontend/src/components/CartList.jsx - Checkout form
frontend/src/components/CheckoutForm.jsx - Admin login
frontend/src/components/AdminLogin.jsx - Admin console
frontend/src/components/AdminPage.jsx - Inventory management
frontend/src/components/AdminCarts.jsx - Session management
frontend/src/components/AdminSessions.jsx - Timezone settings
frontend/src/components/AdminSettings.jsx
API workflows
- FastAPI application
app/main.py - Cart checkout and return
app/routers/carts.py - Admin operations
app/routers/admin.py - Public settings
app/routers/settings.py - Request and response models
app/schemas.py
Identity and time
- Admin token checks
app/auth.py - Timezone conversion
app/timezones.py
Persistence
- Cart session settings models
app/models.py - Database sessions
app/database.py - PostgreSQL store
Other components
- Resident assistant
- Admin staff
Connections 38
- Resident assistant → Page routing: uses
README.md - Admin staff → Page routing: uses
README.md - Page routing → Cart availability: routes to
frontend/src/App.jsx - Page routing → Checkout form: routes to
frontend/src/App.jsx - Page routing → Admin login: routes to
frontend/src/App.jsx - Page routing → Admin console: routes to
frontend/src/App.jsx - Cart availability → Cart checkout and return: loads carts
README.md - Checkout form → Cart checkout and return: submits checkout
README.md - Admin login → Admin token checks: stores token
- Admin console → Cart checkout and return: loads carts
frontend/src/components/AdminPage.jsx - Admin console → Admin operations: loads sessions
frontend/src/components/AdminPage.jsx - Admin console → Public settings: loads timezone
frontend/src/components/AdminPage.jsx - Admin console → Inventory management: renders
frontend/src/components/AdminPage.jsx - Admin console → Session management: renders
frontend/src/components/AdminPage.jsx - Admin console → Timezone settings: renders
frontend/src/components/AdminPage.jsx - Session management → Admin operations: updates sessions
frontend/src/components/AdminSessions.jsx - Inventory management → Admin operations: manages carts
README.md - Timezone settings → Admin operations: sets timezone
README.md - FastAPI application → Cart checkout and return: registers router
app/main.py - FastAPI application → Public settings: registers router
app/main.py - FastAPI application → Admin operations: registers router
app/main.py - Admin operations → Admin token checks: checks access
app/routers/admin.py - Admin operations → Cart checkout and return: closes session
app/routers/admin.py - Cart checkout and return → Public settings: reads timezone
app/routers/carts.py - Admin operations → Public settings: reads and sets timezone
app/routers/admin.py - Cart checkout and return → Timezone conversion: converts due time
app/routers/carts.py - Admin operations → Timezone conversion: converts due time
app/routers/admin.py - Cart checkout and return → Request and response models: validates payloads
app/routers/carts.py - Admin operations → Request and response models: validates payloads
app/routers/admin.py - Public settings → Request and response models: formats response
app/routers/settings.py - Cart checkout and return → Database sessions: opens sessions
app/routers/carts.py - Admin operations → Database sessions: opens sessions
app/routers/admin.py - Public settings → Database sessions: opens sessions
app/routers/settings.py - Database sessions → Cart session settings models: provides base
app/models.py - Database sessions → PostgreSQL store: connects
README.md - Cart checkout and return → Cart session settings models: reads and writes
app/routers/carts.py - Admin operations → Cart session settings models: reads and writes
app/routers/admin.py - Public settings → Cart session settings models: reads and writes
app/routers/settings.py