This is a home library system to keep track who you lend books to as well as keep track of what books you have. BOOKWRMS stands for "Becca's Online Organized Knowledge Warehouse and Resource Management System."
Tutorial that was followed: https://flask.palletsprojects.com/en/2.2.x/tutorial/layout/
- Install python 3.11 from the Micrsoft store:
- Install Visual Studio Code (vs code) from here:
- Create a folder somewhere on your local machine that will house this project and virtual environment (venv). Ex:
Windows:
C:\Users\{user}\Documents\PythonProjects
Linux:
/home/Documents/projects/python
-
Open folder above in vs code and open a terminal inside vs code. On the left hand side look for "source control" and pull this project and switch to that project folder.
-
Create your venv using the venv library native to python. run the following command in the vs code terminal:
Windows:
python -m venv venv
Linux (May neet to install with apt install python3.11-venv)
python3 -m venv venv
ps. the second venv above is the name of the virtual environment. it can be anything you like, but make sure you remember it
- Activate virtual environment by running Activate.ps1 in the venv/Scripts/ folder. Ex:
Windows:
& venv/Scripts/Activate.ps1
Linux:
source venv/bin/activate
- Install all required libraries listed in the requirements.txt
pip install -r requirements.txt
- Initialize and create and fill the local DB using command:
flask --app flaskr init-db --dev true
ps use this command for blank DB:
flask --app flaskr init-db
- Run the flask app locally with this command
flask --app flaskr run --debug
