https://github.com/cheesecake87/flask-example-application-factory
A repo that contains a working example of Flask using the Application Factory pattern.
https://github.com/cheesecake87/flask-example-application-factory
flask guides python ready-to-use snippets tutorials
Last synced: 8 months ago
JSON representation
A repo that contains a working example of Flask using the Application Factory pattern.
- Host: GitHub
- URL: https://github.com/cheesecake87/flask-example-application-factory
- Owner: CheeseCake87
- License: cc0-1.0
- Created: 2022-12-20T16:54:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-20T07:35:36.000Z (12 months ago)
- Last Synced: 2025-06-28T03:16:20.308Z (12 months ago)
- Topics: flask, guides, python, ready-to-use, snippets, tutorials
- Language: Python
- Homepage:
- Size: 77.1 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
```text
# 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.**
```bash
python3 -m venv venv
```
```bash
source venv/bin/activate
```
**Install the requirements.**
```bash
pip install -r requirements.txt
```
**run**
```bash
flask run
```
or
```bash
python3 run.py
```
---
### Windows
**Create a virtual environment and activate it.**
```bash
python -m venv venv
```
```bash
.\venv\Scripts\activate
```
**Install the requirements.**
```bash
pip install -r requirements.txt
```
**run**
```bash
flask run --debug
```
or
```bash
python run.py
```