Skip to content

CheeseCake87/Flask-Example-Application-Factory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask-Example-Application-Factory

Contains a working example of a package Flask App

Setup

(This assumes you have Python installed)

  1. Download or Clone this repository.
  2. Open terminal (Linux) / powershell (Windows) and cd to the directory of the project.
# Linux
cd /path/to/FAS-3-Application-Factory

# Windows
cd C:\path\to\FAS-3-Application-Factory

Linux

Create a virtual environment and activate it.

python3 -m venv venv
source venv/bin/activate

Install the requirements.

pip install -r requirements.txt

run

flask run

or

python3 run.py

Windows

Create a virtual environment and activate it.

python -m venv venv
.\venv\Scripts\activate

Install the requirements.

pip install -r requirements.txt

run

flask run --debug

or

python run.py

About

A repo that contains a working example of Flask using the Application Factory pattern.

Topics

Resources

License

Stars

Watchers

Forks