This solution represents one of many possible ways of solving the CS50's course problem sets and labs. While going through these solutions, it's recommended to pay attention to the Academic Honesty rules in order to be sure that use of these lines will be aligned with your intentions.
One way to run this application:
- create a Python virtual environment;
python -m venv [directory]
-
activate venv - here python docs;
-
install the requirements in virtual environment;
pip install -r requirements.txt
- database initializing;
python db.py
Next step: Configuring as per CS50 web-page steps
- run
python app.py
orflask run
and visithttp://localhost:5000
in two separate browser tabs.
python app.py
or
flask run