How robber-as/sistema_notebooks works
This is a notebook-and-equipment lending system: administrators sign in, manage teachers and assets, record loans and returns, and review operational reports. The primary implementation is a React frontend backed by an Express API and PostgreSQL on Supabase; the README also documents the older PHP API and a Business Model Canvas presentation. The graph emphasizes the React/Express workflow and documented capabilities. Some route internals were not excerpted, so route-to-database edges rely on the SOURCE INDEX; the presentation’s slide content and wiring are not shown.
Main entry points: server.js HTTP server and routes · Admin.jsx Admin workspace · db.js Postgres pool · api.js API client
Components 26
React administration
- React routes
frontend/src/App.jsx - Login and register
frontend/src/pages/Login.jsx - Admin workspace
frontend/src/pages/Admin.jsx - Dashboard
frontend/src/sections/Dashboard.jsx - Notebooks and teachers
frontend/src/sections/Notebooks.jsx - Notebook loans
frontend/src/sections/Loans.jsx - Item inventory and loans
frontend/src/sections/ItemLoans.jsx - Returns and history
frontend/src/sections/Returns.jsx - Reports
frontend/src/sections/Reports.jsx - Return form
frontend/src/components/ReturnModal.jsx - API client
frontend/src/api.js
Express API
- HTTP server and routes
backend/server.js - Authentication
backend/routes/auth.js - JWT middleware
backend/middleware/auth.js - Notebook routes
backend/routes/notebooks.js - Teacher routes
backend/routes/teachers.js - Loan routes
backend/routes/loans.js - Return routes
backend/routes/returns.js - Report routes
backend/routes/reports.js - Item routes
backend/routes/items.js - Item-loan routes
backend/routes/itemLoans.js
Persistence
- Postgres pool
backend/config/db.js - Supabase PostgreSQL
Legacy and presentation
- Legacy PHP API
api - Canvas slides
js/slides.js
Other components
- Administrator
Connections 39
- Administrator → React routes: opens
- React routes → Login and register: routes to
frontend/src/App.jsx - React routes → Admin workspace: routes to
frontend/src/App.jsx - Administrator → Admin workspace: uses
- Admin workspace → Dashboard: renders
frontend/src/pages/Admin.jsx - Admin workspace → Notebooks and teachers: renders
frontend/src/pages/Admin.jsx - Admin workspace → Notebook loans: renders
frontend/src/pages/Admin.jsx - Admin workspace → Item inventory and loans: renders
frontend/src/pages/Admin.jsx - Admin workspace → Returns and history: renders
frontend/src/pages/Admin.jsx - Admin workspace → Reports: renders
frontend/src/pages/Admin.jsx - Admin workspace → API client: loads data
frontend/src/pages/Admin.jsx - Notebook loans → API client: requests
frontend/src/sections/Loans.jsx - Item inventory and loans → API client: requests
frontend/src/sections/ItemLoans.jsx - Returns and history → API client: requests
frontend/src/sections/Returns.jsx - Returns and history → Return form: opens
frontend/src/sections/Returns.jsx - Return form → API client: records return
frontend/src/components/ReturnModal.jsx - Reports → API client: requests
- Login and register → API client: authenticates
frontend/src/pages/Login.jsx - API client → HTTP server and routes: calls API
frontend/src/api.js - HTTP server and routes → Authentication: mounts
backend/server.js - HTTP server and routes → JWT middleware: protects routes
backend/server.js - HTTP server and routes → Notebook routes: mounts
backend/server.js - HTTP server and routes → Teacher routes: mounts
backend/server.js - HTTP server and routes → Loan routes: mounts
backend/server.js - HTTP server and routes → Return routes: mounts
backend/server.js - HTTP server and routes → Report routes: mounts
backend/server.js - HTTP server and routes → Item routes: mounts
backend/server.js - HTTP server and routes → Item-loan routes: mounts
backend/server.js - Authentication → Postgres pool: queries
backend/routes/auth.js - Notebook routes → Postgres pool: queries
backend/routes/notebooks.js - Teacher routes → Postgres pool: queries
backend/routes/teachers.js - Loan routes → Postgres pool: queries
backend/routes/loans.js - Return routes → Postgres pool: queries
backend/routes/returns.js - Report routes → Postgres pool: queries
backend/routes/reports.js - Item routes → Postgres pool: queries
backend/routes/items.js - Item-loan routes → Postgres pool: queries
backend/routes/itemLoans.js - Postgres pool → Supabase PostgreSQL: connects
backend/config/db.js - Administrator → Legacy PHP API: legacy option
- Administrator → Canvas slides: opens presentation