This guide will walk you through setting up a virtual environment and running a Flask application.
- Python 3 installed
- pip (Python package installer) installed
- You need to have cloned this repository
In case you do not know how to clone a repository, all you need to do is have git installed on your computer and use the following command.
git clone https://github.com/dannywu1101/TextSearch.gitMake sure you are in the folder where your app.py file is located.
Run the following command to create a virtual environment:
python3 -m venv <name_of_virtual_environment>Run the following command to activate your virtual environment:
source <name_of_virtual_environment>/bin/activateInstall Flask so you have no problems running the app and using all its functionalities.
pip3 install flaskor
pip install flaskFinally, run the app.py file to start the Flask application: (make sure you´re on the right path).
python3 app.pyor
python app.pyOnce you are done, you can deactivate the virtual environment with:
deactivate