Skip to content

hackthackathon/hackotron-template

Repository files navigation

Setting up Google Drive

You can use the setup_google_drive.py Python script to automatically set up a Google Drive for your event. First, install the required dependencies using:

python -m pip install -r requirements.txt

Then, run the script using:

python setup_google_drive.py NAME_OF_YOUR_EVENT

where NAME_OF_YOUR_EVENT is the name of your event. This will ask you to log into your Google account, then it will use these permissions to create a new folder (called NAME_OF_YOUR_EVENT) with the template structure in it. By default, this will use this public template. You can override this choice by passing a Google Drive ID to the --template argument of the setup_google_drive.py script (instead of the default 1nLYIP41PKy_rQbCNNvR3QwVk6EYSccj1).

Authenticating with Google Drive

You'll need to create a secrets/google.json file with your Google Drive client secret. To set this up:

  1. Go to your Google developer console,
  2. Create a new project and enable the Google Drive API,
  3. Go to the Credentials page and click "Create Credentials" > "OAuth client ID" (enabling the following scopes: drive.file and drive.readonly), and
  4. Download the JSON file and save it as secrets/google.json.

About

Template for generating hackathon.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •