This GitHub repository deploys a simple Python Flask web application.
- You have Python 3.x installed on your local machine.
- You have PIP3 Python package manager installed on your local machine.
- You have the Virtual Python Environment builder installed on your local machine.
-
Create a new Python virtual environment:
python3 -m venv .venv
-
Activate the virtual environment:
source .venv/bin/activate
-
Install the required Python dependencies:
pip3 install -r requirements.txt
After creating and configuring your virtual environment, run the following command to start the Python Flask web application:
python3 application.py
Next, open a web browser and navigate to:
http://127.0.0.1:5000
After creating and configuring your virtual environment, run the following command to run the unit tests:
pytest
Alternatively, you can run the unit tests in the Testing
extension of Visual Studio Code.