Provide drop-in adult badminton programs in the City of Toronto.
- Location based search for nearest badminton programs
- Searching condition available on the count of retrieving recreation centres
- Excel downloads for the search result
- Google Chrome browser installed
- ChromeDriver
- Currently, used version: ChromeDriver 102.0.5005.61
- Google Maps Geocoding API secret key
- Clone repository and set up .env variables with your favorite editors.
git clone https://github.com/humble92/badminton.git
cd badminton
cp .env_example .env
vi .env
- Enter the virtual environment, then you can install dependant pakages.
You can use any other python virtual environment tools instead of
pipenv
.
pipenv shell
pipenv install
Boot the server and enjoy it.
flask run
-
When a recreation centre would newly be built, you can just delete
Recreation_Centres_Info.json
in the repository root directory. That's it. Brand-new information should be reflected. -
By modifying
default_program
variable in.env
, you can switch this app to retrieve another activity program, i.e. "Volleyball". In order to do that, you should exportdefault_program
variable(or re-enter virtual environment) and re-run the server. -
The parsed webpage info is cached in a file format in the
data
directory. We recommend to keep this directory unless you don't understand what you are doing.
The app utilizes contents in the Toronto Recreation Center webpages. The app might need to be adjusted to reflect the future potential changes on the website.