Getting Started: Installation & Setup
Welcome to GameFlow Connect! This guide will help you set up and start using the application.
1. Prerequisites
- Python Version: Python 3.9 or higher installed on your system (python.org).
- Git: Installed for repository management (git-scm.com).
- Google Drive Account: For cloud asset storage.
- GitHub Account & Token: Personal Access Token (PAT) for repository integration.
2. Installation Steps
-
Clone the Repository:
git clone https://github.com/Germano123/python-gameflowconnect.git cd python-gameflowconnect -
Create a Virtual Environment:
- Windows:
python -m venv venv .\venv\Scripts\activate -
Linux / macOS:
python3 -m venv venv source venv/bin/activate -
Install Dependencies:
pip install -r requirements.txt
3. Google Drive OAuth Setup (credentials.json)
To connect with your Google Drive account, you need an OAuth 2.0 Client ID file (credentials.json):
- Go to the Google Cloud Console.
- Create a New Project (e.g.,
GameFlowConnect). - Under APIs & Services > Library, enable the Google Drive API.
- Under APIs & Services > OAuth consent screen, set up the consent screen:
- App Name:
GameFlowConnect - Scope:
https://www.googleapis.com/auth/drive - Add your Google account email under Test Users.
- Under APIs & Services > Credentials, click + Create Credentials > OAuth client ID:
- Application Type: Desktop App
- Download the generated OAuth client JSON file, rename it to
credentials.json, and place it in the root folder ofpython-gameflowconnect.
4. Running the Application
Run the following command to start GameFlow Connect:
python src/main.py
Or use the provided launcher scripts:
- Windows: run.bat
- Linux/macOS: ./run.sh
5. Running Automated Tests
To verify your installation and test all domain entities and use cases:
python -m unittest discover -s tests