Skip to content

An app to collect, parse, store, and manage bridge game data from team contract tournaments across the world.

License

Notifications You must be signed in to change notification settings

Evanmsawyer/BridgeApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BridgeApp

By Evan Sawyer, Corey Reinholdtsen, and Alex Carney.

Requirements

Python

Python is required to run the frontend application, as well as the scripts for data acquisition and conversion. You can download Python here. After installing Python, make sure that the following libraries are installed. Command line arguments for installation are listed for each requirement.

  • MySQL Connector for Python: pip install mysql-connector-python
  • pandas: pip install pandas
  • requests: pip install requests
  • BeautifulSoup: pip install beautifulsoup4

MySQL

The backend database for the application is run on MySQL. Installing MySQL Workbench is recommended as well. The rest of this guide will assume you are using MySQL 8.0 Community Server or later, and MySQL Workbench 8.0 CE. You can download MySQL here by selecting "MySQL Community Server", and you can download MySQL Workbench at the same link by selecting "MySQL Workbench".

Installation/Setup

Setting up the database

If you are connecting to an instance of the database that is already set up, you can skip to "Connecting the frontend". Otherwise, there are two ways to create the database: creating the schema and inserting the data manually, or creating the schema and inserting the pre-acquired data via the same .sql file.

Inserting data automatically

To insert data from the provided sql dump, open the database using MySQL Workbench, then open a new query tab and select "SchemaAndDataDump.sql" from this repository's mysql directory.

Inserting data manually

To insert data manually, first create the schema by executing "SchemaOnlyDump.sql" from this repository's mysql directory, following the instructions from "Inserting Data Automatically". After creating the schema, consult the README in the data directory for details on the data insertion process.

Connecting the frontend to the database

To connect the frontend application to the database, open "db_config.json" in the app directory, and change the fields to the appropriate values corresponding to your database (Ex. "host": "localhost", "user": "admin", "password": "password"). These values should correspond to a user in your MySQL database.

Starting the app

To start the application, navigate to the app directory and run the command py interface.py.

About

An app to collect, parse, store, and manage bridge game data from team contract tournaments across the world.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages