The repo contains a template to show the basics of creating a web-app with Python and Flask. You can clone this repo and run it on your local system using the steps given below.
Install Python on your system using this link Python downloader.
Follow the steps provided in this link under the Method 2: Manually add Python to Windows Path section to add Python to Windows PATH.
I strongly recommend VS code because it is powerful, easy to use, and has quick workflows. You can download it here.
Use the command pip install -r requirements.txt
in the terminal to install all the dependencies required to run the application.
This should show a link in the terminal similar to this:
PS C:\Users\sughosh.kulkarni\Desktop\CART\Jonathan\Sample Flask> python app.py
* Serving Flask app "app" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: on
* Restarting with stat
* Debugger is active!
* Debugger PIN: 239-151-521
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
The app opens up in a local host environment. You can click on http://127.0.0.1:5000/ to open up your web-app.
NOTE
If you get any errors when you run python app.py
, please use pip install in python terminal to install respective dependencies.
You can open a python terminal by holding Ctrl + shift + p
to open Command Palette and Create Terminal
to get Python terminal.