Skip to content

Nashville-Public-Library/booth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,064 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

booth

tests GitHub issues last-commit

api.talkinglibrary.nashville.gov

a simple web app to assist with various backend TL things...


Server Config

move this elsewhere...

Volunteer Photos

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.

Misc

Don't forget to continually update your requirement.txt file as you go:

pip freeze > requirements.txt

Development

  • 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 python or python3 instead of py
  • 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 pip3 instead of pip
  • 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

About

web app to assist with TL booth schedule

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors