How soumabhasaha15/citylibrary works
CityLibrary is a full-stack library system: users browse books and author profiles, authenticate, and manage borrowing through a React client backed by a Django API; Django also provides library administration. The graph emphasizes documented catalog, author-indexing, borrowing, and theming capabilities. The sampled source confirms author retrieval, authentication requests, author persistence, admin registration, and Cloudinary cleanup; links for unsampled book and borrowing flows are omitted rather than inferred.
Main entry points: models/author.py Author records · main.tsx Client bootstrap · authors.py Author endpoints · signals/author.py Author image cleanup
Components 26
Web client
- Client bootstrap
ViteServer/src/main.tsx - Author pages
ViteServer/src/routes/user/authors/index.tsx - Author detail
ViteServer/src/routes/user/authors/$id.tsx - Book browsing
ViteServer/src/routes/user/books/index.tsx - Borrowing pages
ViteServer/src/routes/user/borrow/index.tsx - Login and signup
ViteServer/src/routes/_auth.signup.tsx - Author query
ViteServer/src/hooks/fetchAuthors.ts - Auth state and actions
ViteServer/src/store/auth.ts - Theme state
ViteServer/src/store/theme.ts - HTTP client
ViteServer/src/util/axios-base.ts
Django API
- Author endpoints
DjangoAdmin/library/views/authors.py - Author detail endpoint
DjangoAdmin/library/views/author_by_id.py - Book endpoints
DjangoAdmin/library/views/books.py - Borrow endpoints
DjangoAdmin/library/views/borrow.py - User endpoints
DjangoAdmin/library/views/user_login.py - Author filtering
DjangoAdmin/library/filters/author.py - Author serialization
DjangoAdmin/library/serializers/author.py
Library data and admin
- Author records
DjangoAdmin/library/models/author.py - Book records
DjangoAdmin/library/models/book.py - Borrow records
DjangoAdmin/library/models/borrow.py - Author administration
DjangoAdmin/library/admin/author.py - Author image cleanup
DjangoAdmin/library/signals/author.py - Signal registration
DjangoAdmin/library/apps.py
External services
- Library database
- Cloudinary images
Other components
- Library user
Connections 21
- Library user → Client bootstrap: uses
- Client bootstrap → Author pages: routes
- Client bootstrap → Login and signup: routes
- Client bootstrap → Theme state: reads state
- Author pages → Author query: queries
- Author query → HTTP client: requests
- HTTP client → Author endpoints: GET authors
- Login and signup → Auth state and actions: submits signup
- Auth state and actions → HTTP client: sends auth requests
- Author endpoints → Author filtering: filters
- Author endpoints → Author serialization: serializes
- Author detail endpoint → Author records: loads author
- Author detail endpoint → Author serialization: serializes
- Author administration → Author records: administers
- Author records → Library database: persists
- Book records → Library database: persists
- Borrow records → Library database: persists
- Signal registration → Author image cleanup: loads signals
- Author image cleanup → Author records: reads records
- Author image cleanup → Cloudinary images: deletes assets
- Author records → Cloudinary images: stores images