How gabtapia/sistema_biblioteca_fullstack works
This is a full-stack library-catalog manager. Users create, browse, edit, and delete authors, literary genres, and books; book records reference an existing author and genre. The browser interface delegates API requests to a shared fetch client, while FastAPI routes validate and dispatch operations to CRUD logic backed by SQLAlchemy and SQLite. The README also documents cascade deletion for authors and restricted deletion for genres. Frontend wiring is supported by the sampled script and API client; route-to-CRUD wiring is shown for the sampled routes, with equivalent modules retained as documented capabilities.
Main entry points: autor_routes.py Author routes · genero_routes.py Genre routes · livro_routes.py Book routes · main.py FastAPI app
Components 13
Web interface
- Catalog pages
pages - UI interactions
src/script.js - Fetch client
src/api.js
REST API
- FastAPI app
backend/main.py - Author routes
backend/routes/autor_routes.py - Genre routes
backend/routes/genero_routes.py - Book routes
backend/routes/livro_routes.py - Request schemas
backend/schemas.py
Persistence
- Catalog operations
backend/crud.py - Session provider
backend/dependencies.py - ORM models
backend/models.py - SQLite catalog
backend/models.py
Other components
- Library user
Connections 22
- Library user → Catalog pages: uses
- Catalog pages → UI interactions: loads
- UI interactions → Fetch client: calls
- FastAPI app → Author routes: registers
- FastAPI app → Genre routes: registers
- FastAPI app → Book routes: registers
- Author routes → Fetch client: serves requests
- Genre routes → Fetch client: serves requests
- Book routes → Fetch client: serves requests
- Author routes → Catalog operations: dispatches
- Genre routes → Catalog operations: dispatches
- Book routes → Catalog operations: dispatches
- Author routes → Request schemas: validates
- Genre routes → Request schemas: validates
- Book routes → Request schemas: validates
- Author routes → Session provider: requests session
- Genre routes → Session provider: requests session
- Book routes → Session provider: requests session
- Session provider → ORM models: binds engine
- Catalog operations → ORM models: queries models
- ORM models → SQLite catalog: reads and writes
- FastAPI app → ORM models: creates tables