Skip to content

humble92/badminton

Repository files navigation

Badminton Activities in the City of Toronto

Provide drop-in adult badminton programs in the City of Toronto.

Features

  • Location based search for nearest badminton programs
  • Searching condition available on the count of retrieving recreation centres
  • Excel downloads for the search result

Prerequisites

  • Google Chrome browser installed
  • ChromeDriver
    • Currently, used version: ChromeDriver 102.0.5005.61
  • Google Maps Geocoding API secret key

Installation

  1. 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
  1. 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

Run Server

Boot the server and enjoy it.

flask run

Tips

  1. 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.

  2. 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 export default_program variable(or re-enter virtual environment) and re-run the server.

  3. 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.

Note

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.

About

Badminton programs in the City of Toronto

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published