How saumyatiwariexe/odoohackathon works
StockSense is a warehouse inventory management application. Operators use its React interface to review stock and create receipts, deliveries, transfers, or adjustments; the FastAPI service exposes those capabilities, while operation validation updates quantities and records stock movements. The product also includes dashboard analytics, warehouse configuration, authentication, and an immutable movement ledger. The excerpts establish routing, catalog and operation database access, and login/signup persistence; links for other unsampled API behavior are shown as unverified where useful.
Main entry points: App.tsx Application routes · main.py FastAPI application · OperationsPage.tsx Operations console · catalog.py Catalog API
Components 20
Operator interface
- Application routes
frontend/src/App.tsx - Workspace layout
frontend/src/components/layout/AppLayout.tsx - Telemetry dashboard
frontend/src/pages/dashboard/DashboardPage.tsx - Product catalog
frontend/src/pages/products/ProductsPage.tsx - Operations console
frontend/src/pages/operations/OperationsPage.tsx - Operation detail
frontend/src/pages/operations/OperationDetailPage.tsx - Movement history
frontend/src/pages/ledger/LedgerPage.tsx - Warehouse settings
frontend/src/pages/settings/SettingsPage.tsx - Sign-in and recovery
frontend/src/pages/auth/LoginPage.tsx
API and identity
- FastAPI application
main.py - Login
auth/login.py - Registration
auth/signup.py - Password recovery
auth/password_reset.py
Inventory workflows
- Catalog API
routers/catalog.py - Operations API
routers/operations.py - Dashboard analytics API
routers/dashboard.py - Stock ledger API
routers/ledger.py - Location configuration API
routers/locations.py
Persistent state
- PostgreSQL inventory and user data
Other components
- Warehouse operator
Connections 30
- Warehouse operator → Application routes: uses
README.md - Application routes → Workspace layout: routes through
frontend/src/App.tsx - Application routes → Telemetry dashboard: routes to
frontend/src/App.tsx - Application routes → Product catalog: routes to
frontend/src/App.tsx - Application routes → Operations console: routes to
frontend/src/App.tsx - Application routes → Operation detail: routes to
frontend/src/App.tsx - Application routes → Movement history: routes to
frontend/src/App.tsx - Application routes → Warehouse settings: routes to
frontend/src/App.tsx - Application routes → Sign-in and recovery: routes to
frontend/src/App.tsx - FastAPI application → Login: invokes
main.py - FastAPI application → Registration: invokes
main.py - FastAPI application → Password recovery: invokes
main.py - FastAPI application → Catalog API: registers routes
main.py - FastAPI application → Operations API: registers routes
main.py - FastAPI application → Dashboard analytics API: registers routes
main.py - FastAPI application → Stock ledger API: registers routes
main.py - FastAPI application → Location configuration API: registers routes
main.py - Product catalog → Catalog API: requests catalog
frontend/src/pages/products/ProductsPage.tsx - Operations console → Operations API: requests operations
frontend/src/pages/operations/OperationsPage.tsx - Operations console → Catalog API: loads products
frontend/src/pages/operations/OperationsPage.tsx - Operations console → Location configuration API: loads locations
frontend/src/pages/operations/OperationsPage.tsx - Catalog API → PostgreSQL inventory and user data: reads and writes
routers/catalog.py - Operations API → PostgreSQL inventory and user data: updates stock and ledger
routers/operations.py - Login → PostgreSQL inventory and user data: reads user
auth/login.py - Registration → PostgreSQL inventory and user data: creates user
auth/signup.py - Telemetry dashboard → Dashboard analytics API: loads analytics
- Movement history → Stock ledger API: loads movement history
- Warehouse settings → Location configuration API: configures locations
- Sign-in and recovery → FastAPI application: submits credentials
- Password recovery → PostgreSQL inventory and user data: uses reset state