This is a template for a Flask Python application.
A basic template for starting a Flask Python project. This template includes the necessary setup for a Flask application and uses python-dotenv
for environment variable management.
-
Clone the repository:
git clone https://github.com/yourusername/flask-python-template.git cd flask-python-template
Note: If you already have a previous version of the repository cloned, make sure to delete the old folder before cloning the new one.
Alternatively, you can clone the repository without the
.git
folder by using the following command:git clone --depth=1 https://github.com/yourusername/flask-python-template.git
-
Create a virtual environment:
-
On macOS/Linux:
python3 -m venv venv source venv/bin/activate
-
On Windows:
python -m venv venv .\venv\Scripts\activate
-
-
Install the dependencies:
pip install -r requirements.txt
-
Run the application:
flask run