How nyeb-b/lab-exercise-4-flask-intro-2026-bien works
This is an introductory Flask portfolio and programming-tools site. Visitors browse portfolio pages or submit forms to interactive tools; the Flask route handlers validate inputs, calculate or dispatch operations, then render results. The tools cover text and area calculations, linked-list, stack and queue operations, and infix-to-postfix conversion. The algorithm layer is implemented in data_structures.py. Edges are based on the sampled app.py and data_structures.py; the README only broadly describes the portfolio and tools, so unsampled template behavior is not inferred.
Main entry points: app.py Flask routes · home.html Home page · profile.html Profile page · contact.html Contact page
Components 22
Portfolio pages
- Flask routes
app.py - Home page
templates/home.html - Profile page
templates/profile.html - Contact page
templates/contact.html
Interactive tools
- Text converter
app.py - Uppercase page
templates/touppercase.html - Area calculators
app.py - Circle page
templates/circle.html - Triangle page
templates/triangle.html - Linked-list handler
app.py - Linked-list page
templates/linked_list.html - Stack handler
app.py - Stack page
templates/stack.html - Queue handler
app.py - Queue page
templates/queue.html - Expression handler
app.py - Postfix page
templates/infix_postfix.html
Data structures
- Linked list
data_structures.py - Stack
data_structures.py - Queue
data_structures.py - Infix converter
data_structures.py
Other components
- Visitor
Connections 21
- Visitor → Flask routes: requests pages
app.py - Flask routes → Home page: renders
app.py - Flask routes → Profile page: renders
app.py - Flask routes → Contact page: renders
app.py - Visitor → Text converter: submits text
app.py - Text converter → Uppercase page: renders result
app.py - Visitor → Area calculators: submits measures
app.py - Area calculators → Circle page: renders result
app.py - Area calculators → Triangle page: renders result
app.py - Visitor → Linked-list handler: submits actions
app.py - Linked-list handler → Linked list: calls operations
app.py - Linked-list handler → Linked-list page: renders state
app.py - Visitor → Stack handler: submits actions
app.py - Stack handler → Stack: calls operations
app.py - Stack handler → Stack page: renders state
app.py - Visitor → Queue handler: submits actions
app.py - Queue handler → Queue: calls operations
app.py - Queue handler → Queue page: renders state
app.py - Visitor → Expression handler: submits expression
app.py - Expression handler → Infix converter: calls converter
app.py - Expression handler → Postfix page: renders result
app.py