How cvbandeira/backend works
This is a small Flask API for checking PostgreSQL availability and retrieving users. The request workflow is HTTP request → route handler → database connection; /users then reads the users table and returns the results. Both handlers use the shared connection helper. The README documents the endpoints and table setup; the source excerpt shows the route behavior and database calls.
Main entry points: app.py Users route · init.sql Users table
Components 5
HTTP API
- Health route
app.py - Users route
app.py - Connection helper
app.py
PostgreSQL
- Users table
init.sql
Other components
- HTTP client
Connections 6
- HTTP client → Health route: requests health
README.md - HTTP client → Users route: requests users
README.md - Health route → Connection helper: opens connection
app.py - Users route → Connection helper: opens connection
app.py - Connection helper → Users table: connects to database
app.py - Users route → Users table: queries users
app.py