How thecodeycorner/medcheck works
MedCheck is a Flask medicine-search app. Its main workflow sends a browser search for a medicine name or active ingredient to the server, queries the medicine CSV, calculates comparable unit costs, renders medicine cards, and returns HTML to the page. Search results are also saved to a CSV file. The source shows a favorites route, but its template and supporting implementation are absent from the supplied tree. The README gives no further capability details.
Main entry points: app.py Search endpoint · index.html Search page · script.js Search client · medicines.csv Medicine catalog
Components 11
Browser interface
- Search page
templates/index.html - Search client
static/script.js
Flask application
- Home route
app.py - Search endpoint
app.py - Medicine query
app.py - Unit cost
app.py - Card renderer
app.py - Favorites route
app.py
Medicine data
- Medicine catalog
database/medicines.csv - Search results
database/results.csv
Other components
- User
Connections 10
- User → Search page: uses
- Home route → Search page: renders
- Search page → Search client: loads
- Search client → Search endpoint: posts search
- Search endpoint → Medicine query: queries
- Medicine query → Medicine catalog: reads
- Search endpoint → Search results: writes results
- Search endpoint → Unit cost: calculates
- Search endpoint → Card renderer: renders cards
- Search endpoint → Search client: returns HTML