How konstantintarasov/library_app works
LibraryApp is a Rails online library for browsing and managing books, with user accounts and book comments. The main evidenced workflow is a browser request routed to the books controller, which reads or changes book records; comment creation also validates a captcha and sends the book owner an email. The tree shows account management, image-upload support, and database schema, but no views or templates, so the presentation layer and some model-to-storage details are not represented. The graph focuses on relationships visible in the excerpts and README.
Main entry points: comments_controller.rb Comments controller · routes.rb Routes · books_controller.rb Books controller · users_controller.rb Users controller
Components 14
Web requests
- Routes
config/routes.rb - Books controller
app/controllers/books_controller.rb - Comments controller
app/controllers/comments_controller.rb - Users controller
app/controllers/users_controller.rb
Library domain
- Book records
app/models/book.rb - Comment records
app/models/comment.rb
Accounts and notifications
- User records
app/models/user.rb - Devise account routes
config/routes.rb - Book mailer
app/mailers/book_mailer.rb
Data and media
- Application database
db/schema.rb - Book image uploader
app/uploaders/image_uploader.rb
Other components
- Library visitor
- Email delivery
- Captcha verification
Connections 16
- Library visitor → Routes: requests pages
config/routes.rb - Routes → Books controller: routes book requests
config/routes.rb - Routes → Comments controller: routes comment requests
config/routes.rb - Routes → Users controller: routes account requests
config/routes.rb - Routes → Devise account routes: registers Devise routes
config/routes.rb - Books controller → Book records: loads and changes
app/controllers/books_controller.rb - Comments controller → Book records: loads book
app/controllers/comments_controller.rb - Comments controller → Comment records: builds and changes
app/controllers/comments_controller.rb - Comments controller → User records: sets commenter
app/controllers/comments_controller.rb - Comments controller → Book mailer: sends owner notice
app/controllers/comments_controller.rb - Book mailer → Email delivery: delivers message
- Comments controller → Captcha verification: verifies for guests
app/controllers/comments_controller.rb - Users controller → User records: updates and deletes
app/controllers/users_controller.rb - Books controller → Application database: persists book changes
- Comments controller → Application database: persists comment changes
- Users controller → Application database: persists account changes