Backend Architecture
This page will explain how the backend code functions to create the functionality of highest level on down.
Highest Level
Cocktail Search (catalogue page) works in this process:
General load
- Python queries SQLite for full list of drinks / base liquors
- SQLite returns the lists to Python, which are saved into a variable
- Python serves the information onto HTML using Flask
- Jinja populates the page with drink/base information upon render
User Queries
- User enters query into search bar and submits information
- HTML sends Python the information using GET and POST
- Python captures the query and saves it in a variable
- Python queries SQLite for similar drink names as query
- SQLite returns the lists to Python, which are saved into a variable
- Python serves the information onto HTML using Flask
- Jinja populates the page with drink/base information upon render