git clone https://github.com/LorisYanis/nest-google-drive-solution.git
npm install
# OR
yarn install
# OR
pnpm install
OR any other alternative package manager
You can generate one at https://cloud.google.com/
{
"type": "service_account",
"project_id": "",
"private_key_id": "",
"private_key": "",
"client_email": "",
"client_id": "",
"auth_uri": "",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "",
"universe_domain": "googleapis.com"
}
# The Google Drive folder's ID (https://drive.google.com/drive/u/0/folders/ID...)
# (You must create a folder and provide access to a client_email from googlekey-example.)
GOOGLE_DRIVE_FOLDER_ID="YOUR_ID"