api.talkinglibrary.nashville.gov
a simple web app to assist with various backend TL things...
move this elsewhere...
Crop the photo to be a headshot and copy it to static/img/vol/. The file should be labelled the same way their name shows up in VIC, but remove the space between the first and last name. If the name in VIC is Steve Rogers, the photo should be SteveRogers.jpg. All photos must be a .JPG.
Don't forget to continually update your requirement.txt file as you go:
pip freeze > requirements.txt-
Clone this depository
git clone https://github.com/Nashville-Public-Library/booth.git
-
cd into the folder in the terminal or open the folder in your IDE
cd booth -
Create a virtual environment
py -m venv venv
- Depending on your OS, you may need to use
pythonorpython3instead ofpy
- Depending on your OS, you may need to use
-
Activate virtual environment
- On Windows:
venv\Scripts\activate
- On Mac:
source venv/bin/activate[IMPORTANT] If done correctly, you should see
(venv)in the terminal. Don't run the rest of these commands unless you see(venv)in the terminal. -
Update pip
pip install --upgrade pip
-
Install dependencies
pip install -r requirements.txt
- Depending on your OS, you may need to run
pip3instead ofpip
- Depending on your OS, you may need to run
-
Install Browser Drivers
playwright install chromium
-
Run Pytest
pytest
If there are failing tests, you may have installed something incorrectly...
-
Start the site
flask run --debug
To open the site in your browser, follow the directions in your terminal
