Skip to content

This is base example project for Python Flask Project. If someone want to start their project from beginning, then can clone this and build on top of this

Notifications You must be signed in to change notification settings

banjaneyulu/Base_Flask_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base_Flask_Project

This is base example project for Python Flask Project. If someone want to start their project from beginning, then can clone this and build on top of this

Basic Setup Requirements

  1. Install Latest Python version from https://www.python.org/downloads/

  2. Setup Flask

    • Set environment for flask project using commands set FLASK_APP=app and set FLASK_ENV=development
    • Create a project folder and change directory to the project directory using command cd
    • Install Flask using pip install flask
    • Verify flask version using the command python -c "import flask; print(flask.__version__)"
    • Copy app.py file from https://github.com/banjaneyulu/Base_Flask_Project/blob/main/app.py
  3. Run Flask Application

    • Run Flask application using flask run

Project Structure

  1. Application
    • app.py is the driver file for the application.
    • By default UI templates are kept inside templates folder which will be automatically picked by framework
    • Styles, Scripts are kept inside static folder
  2. Framework
    • static folder will have styles including the custom styles and bootstrap
    • Using Bootstrap, Jquery frameworks for UI
    • Bootstrap downloaded and kept with the project, so local development loading will be faster.

How to use project

  1. You can use two routes localhost:5000/ and localhost:5000/secondLink
  2. More updates to come...

Thank you 😊

About

This is base example project for Python Flask Project. If someone want to start their project from beginning, then can clone this and build on top of this

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •