Foodhub is a food search with an extensive price comparison. The prices shown come from various food ordering websites like Zomato, Swiggy, Ubereats. This means that while users decide on foodhub which food ordering website best suits their needs, the ordering process itself is completed through the booking sites (which are linked to our website).
These instructions will get you a copy of the project up and running on your local machine.
What things you need to install the software and how to install them
pip3 install flask
You just need to install flask library and for database i am gonna use sqlite3 no need to install sqlite module It is included in the standard library (since Python 2.5)
|FoodHub──
|flask_project──
├── app.py
├── food.db
├── model.py
|
└── templates
├── base.html
├── food.html
└── home.html
app.py is a controller in which all logics are there, model.py is a model file in which all database insert create and querry codes are there, temaplates is a folder inside which there is view files.
python app.py
As i am following MVC Model-View-Controller framework MVC Controllers are responsible for controlling the flow of the application execution. When you make a request (means request a page) to MVC application, a controller is responsible for returning the response to that request, Here app.py is my controller thats why i am runing app.py file
http://127.0.0.1:5000/home
- Add this url to your Browser
* type "Biryani' in search
* there is button where you can select restaurants
* Zomato, Swiggy and ubereats price shown, Here in example Paradise restaurant biryani price is different, now users can select which is ever have good deal
- Zomato showing best deal, so click on zomato