Skip to content

SughoshKulkarni/Flask-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask-template

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.


How to run

Step 1: Install python

Install Python on your system using this link Python downloader.

Step 2: Add Python to Windows PATH

Follow the steps provided in this link under the Method 2: Manually add Python to Windows Path section to add Python to Windows PATH.

Step 3: Install your IDE (Integrated Development Environment).

I strongly recommend VS code because it is powerful, easy to use, and has quick workflows. You can download it here.

Step 4: Clone this repository

Step 5: Open the terminal by holding Ctrl + ~.

Step 6: Install required dependencies.

Use the command pip install -r requirements.txt in the terminal to install all the dependencies required to run the application.

Step 7: Type python app.py in the terminal and press Enter.

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.

About

Basic flask template to get started

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published