This README provides a comprehensive guide to setting up and running Flask application.
- Python 3.x: Download Python
- Git version control system: Download Git
To download the project files from the specified Git repository to your local machine, use the following command:
git clone https://github.com/manishpg83/flask.git
Creating a virtual environment helps isolate project dependencies from your system-wide Python installation. This prevents conflicts and ensures consistency.
Steps:
-
Create a Virtual Environment:
python -m venv venv # Create virtual environment named "venv"
-
Activate the virtual environment:
Depending on your operating system, use one of these commands to activate the "venv" environment:
-
Linux/macOS:
source venv/bin/activate
-
Windows:
venv\Scripts\activate.bat
-
-
Install Project Dependencies:
Activate your virtual environment (if you created one). Then, install the required dependencies listed in the
requirements.txt
file:pip install -r requirements.txt
-
Run the Application:
Start your Flask application by executing:
python app.py