An open API service indexing awesome lists of open source software.

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.

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
```