How rhundal/ps-sba-5-personal-blog-journal works
Reflections is a small browser-based journal for creating, viewing, editing, and deleting posts. The main workflow runs from the user through the post form, validation, and post state, then persists changes in localStorage and refreshes the dynamically rendered list. Editing and deleting are available from each rendered post. The source excerpt is partial, so some connections are supported by the README rather than inspected implementation details.
Main entry points: script.js Form handler · index.html Journal UI · style.css Journal styling
Components 11
Journal interface
- Journal UI
index.html - Post form
index.html - Post list
index.html - Post controls
script.js - Journal styling
style.css
Post logic
- Form handler
script.js - Field validation
script.js - Post state
script.js - Post renderer
script.js
Browser persistence
- Local storage
Other components
- Visitor
Connections 13
- Visitor → Journal UI: opens
README.md - Visitor → Post form: creates posts
README.md - Visitor → Post list: views posts
README.md - Post form → Form handler: submits to
script.js - Form handler → Field validation: validates with
script.js - Form handler → Post state: adds or updates
script.js - Form handler → Local storage: saves posts
script.js - Local storage → Post state: loads posts
script.js - Post state → Post renderer: renders from
script.js - Post renderer → Post list: creates list items
script.js - Post controls → Post state: edits or deletes
README.md - Post controls → Local storage: persists changes
README.md - Journal UI → Journal styling: styled by
README.md