42 lines
842 B
Markdown
42 lines
842 B
Markdown
# Flask Application Examples
|
|
|
|
This repository contains a Flask application along with necessary setup instructions.
|
|
|
|
## Installation
|
|
|
|
Follow these steps to set up and install the Flask application:
|
|
|
|
### Prerequisites
|
|
|
|
- Python 3.x installed on your system. You can download Python from [python.org](https://www.python.org/).
|
|
|
|
### Setup
|
|
|
|
1. Make dir and go to directory:
|
|
|
|
```bash
|
|
mkdir <directory>
|
|
cd <directory>
|
|
```
|
|
2. Create and activate a virtual environment:
|
|
```bash
|
|
python3 -m venv venv
|
|
```
|
|
Activate the virtual environment:
|
|
On windows:
|
|
```bash
|
|
venv\Scripts\activate
|
|
```
|
|
On macOS/Linux:
|
|
```bash
|
|
source venv/bin/activate
|
|
```
|
|
3. Install dependencies:
|
|
```bash
|
|
pip install -r requirements.txt
|
|
```
|
|
|
|
4. Running the Application:
|
|
```bash
|
|
python main.py
|
|
``` |