Ruby Project: Book Viewer (Sinatra Web App)

Click here to view this project.

This is a Ruby + Sinatra web application that renders a full book (table of contents + chapters) in the browser. Chapters are loaded from text files, displayed with ERB templates, and split into readable paragraphs with anchor IDs. It also includes a simple search feature that scans chapter text for a query and highlights matching terms in the results.

Skills demonstrated:

  •     Ruby
  •     Sinatra
  •     ERB templating
  •     HTTP routing and params (/chapters/:number, /search)
  •     File I/O (loading TOC + chapter files)
  •     HTML/CSS (server-rendered pages)
  •     String processing (search + highlighting)

Leave a Reply

Your email address will not be published. Required fields are marked *