Steps:
- Create a virtual environment in the root directory:
python3 -m venv venv
- Activate the virtual environment:
source venv/bin/activate
- Install dependencies:
python3 -m pip install -r requirements.txt
- Set up environment variables for the flask app:
source env-var.sh
- Initialize the database:
flask init-db
After the database is initialized the database file is atinstance/flaskr.sqlite
- Start the website:
flask run
- http://127.0.0.1:5000/movies/
- To stop the app you can hit
ctrl + c
- If the virtual envirnment is no longer needed, it can be deativated by entering
deactivate
- Reviewer said 'Good Work'