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

https://github.com/cheesecake87/flask-example-single-module

A repo that contains a working example of Flask setup on a single module.
https://github.com/cheesecake87/flask-example-single-module

flask guides python ready-to-use snippets tutorials

Last synced: about 2 months ago
JSON representation

A repo that contains a working example of Flask setup on a single module.

Awesome Lists containing this project

README

          

# FAS-1-Single-Module

(FAS, Flask App Structure)

Contains a working example of a Flask App setup in a single module.

### 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-1-Single-Module

# Windows
cd C:\path\to\FAS-1-Single-Module
```

---

### 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 app.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
```

or

```bash
python app.py
```