How padeghdev/ct519dockercompose works
This is a Flask customer and contact-note management application backed by PostgreSQL. Users can create and maintain customer records, search active customers, record dated contact notes, and view a customer’s notes. The main workflow runs through Flask routes in app.py, which query or update PostgreSQL and render templates. A separate schema-initialization route creates the customer and contact tables and inserts sample rows. Database helper and setup implementations are sampled; template internals and container wiring are not, so those relationships are not expanded.
Main entry points: app.py Flask routes · connectdb.py Connection helper · templates Contact pages · createtable_customer.py Customer table setup
Components 15
Web workflows
- Flask routes
app.py - Customer management
app.py - Customer pages
templates - Contact note entry
app.py - Customer search
app.py - Contact history
app.py - Contact pages
templates
Database setup
- Schema initialization
app.py - Customer table setup
app/createtable_customer.py - Contact table setup
app/createtable_contact.py - Customer sample data
app/insertdata_customer.py - Contact sample data
app/insertdata_contact.py
Persistence
- Connection helper
app/connectdb.py - PostgreSQL
Other components
- Web user
Connections 28
- Web user → Flask routes: sends requests
- Flask routes → Customer management: dispatches
- Flask routes → Contact note entry: dispatches
- Flask routes → Customer search: dispatches
- Flask routes → Contact history: dispatches
- Customer management → Connection helper: opens connection
- Contact note entry → Connection helper: opens connection
- Customer search → Connection helper: opens connection
- Contact history → Connection helper: opens connection
- Customer management → PostgreSQL: queries and updates
- Contact note entry → PostgreSQL: inserts notes
- Customer search → PostgreSQL: searches customers
- Contact history → PostgreSQL: reads notes
- Customer management → Customer pages: renders
- Contact note entry → Contact pages: renders
- Customer search → Contact pages: renders
- Contact history → Contact pages: renders
- Flask routes → Schema initialization: dispatches
- Schema initialization → Customer table setup: calls
- Schema initialization → Contact table setup: calls
- Schema initialization → Customer sample data: calls
- Schema initialization → Contact sample data: calls
- Customer table setup → PostgreSQL: creates table
- Contact table setup → PostgreSQL: creates table
- Customer sample data → PostgreSQL: inserts sample
- Contact sample data → PostgreSQL: inserts sample
- Connection helper → PostgreSQL: connects
- Flask routes → Web user: returns pages