How leonardogtc/a2026_sistema_de_biblioteca works
This is a small library-management web application. A visitor reaches the login page, authenticates through the Express server, and receives a session that gates the dashboard; the dashboard endpoint returns library metrics and recent records. The server also exposes profile, photo, and logout endpoints. Prisma connects the application to PostgreSQL. The README is empty, and the HTML files and Prisma schema were not excerpted, so their internal behavior and the broader catalog/loan workflows are not inferred.
Main entry points: server.js Express server · prisma.js Prisma client · login.html Login page · dashboard.html Dashboard page
Components 9
Web application
- Express server
src/server.js - Login page
public/login.html - Dashboard page
public/dashboard.html
Identity and profile
- Authentication and sessions
src/server.js - User profile and photo
src/server.js
Library data
- Dashboard metrics
src/server.js - Prisma client
src/prisma.js
Other components
- Visitor
- PostgreSQL
Connections 10
- Visitor → Express server: sends requests
src/server.js - Express server → Login page: serves page
src/server.js - Express server → Dashboard page: serves protected page
src/server.js - Express server → Authentication and sessions: routes authentication
src/server.js - Express server → User profile and photo: routes profile requests
src/server.js - Express server → Dashboard metrics: routes stats requests
src/server.js - Authentication and sessions → Prisma client: queries users
src/server.js - User profile and photo → Prisma client: queries users
src/server.js - Dashboard metrics → Prisma client: queries library records
src/server.js - Prisma client → PostgreSQL: connects through pg
src/prisma.js