1. Project Brief
Yesterday, we built a distance converter web app using Streamlit. Your task for today is to build a similar app, but this time using Flask which is a more powerful web framework. Here is how the app should look like more or less:
In the above interface, the user can:
Select which type of conversion to make.
Type in a number.
Press the “Convert” button to get the results.
If you want the app to look modern like in the snapshot above, consider using Bootstrap.
3. Environment Setup Instructions (in your local IDE)
👉 Skip to the next step if you prefer to code this project in an online browser-based IDE or from your mobile phone.
Install flask:
pip install flask
To run the code, execute the main.py file with:
python run main.py
4. Environment Setup Instructions (in an online IDE as alternative)
Prefer an online IDE? Use this cloud IDE link to start coding immediately with a pre-configured environment.
5. Resources
You can learn about building Flask apps in the Flask section of the Python Mega Course:
https://www.udemy.com/course/the-python-mega-course/learn/lecture/3688879
Felt like going back and trying this one to get some experience with flask.
https://replit.com/@drrawley/Distance-Converter-App