Assumptions prior to install
Run the following commands
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Run the following commands
py -3 -m venv venv
venv\Scripts\activate
pip3 install -r requirements.txt
If you encounter the following error or something similar:
venv\Scripts\activate : File C:\Users\Raymo\Desktop\blah\search-engine\venv\Scripts\Activate.ps1 cannot be
loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies
at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ venv\Scripts\activate
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
set-executionpolicy remotesigned
Reference: https://superuser.com/questions/106360/how-to-enable-execution-of-powershell-scripts
Run the following command
deactivate
pip freeze
Reference - https://flask.palletsprojects.com/en/1.1.x/quickstart/
Run the following commands
export FLASK_APP=searchapp/searchapp.py
export FLASK_ENV=development
flask run
Run the following commands
$env:FLASK_APP = "searchapp/searchapp.py"
$env:FLASK_ENV = "development"
flask run
Run the following commands
set FLASK_APP=searchapp/searchapp.py
set FLASK_ENV=development
flask run
Based on: