How mehmet-kahraman/okan-uni-ceng413 works
This tiny Flask service handles three GET endpoints: health status, configurable greetings, and a stateful visit counter. The visit handler obtains a counter-file path, then reads and increments the persisted value. The graph focuses on runtime behavior; Docker and lab materials are not runtime components. Relationships are grounded in the README and the app.py excerpt.
Main entry points: app.py Visit Handler
Components 7
Other components
- HTTP Client
- Health Handler
app.py - Greeting Handler
app.py - Visit Handler
app.py - Counter Path Helper
app.py - Environment
- Visit Counter File
app.py
Connections 11
- HTTP Client → Health Handler: GET /health
README.md - Health Handler → HTTP Client: returns status
app.py - HTTP Client → Greeting Handler: GET /greet
README.md - Greeting Handler → HTTP Client: returns greeting
app.py - Environment → Greeting Handler: sets greeting
app.py - HTTP Client → Visit Handler: GET /visit
README.md - Visit Handler → HTTP Client: returns count
app.py - Visit Handler → Counter Path Helper: gets path
app.py - Counter Path Helper → Visit Counter File: creates path
app.py - Environment → Counter Path Helper: sets data directory
app.py - Visit Handler → Visit Counter File: reads and writes
app.py