Skip to content

LorisYanis/nest-google-drive-solution

Repository files navigation

The Google Drive upload solution for Nest.js

Clone the repository

git clone https://github.com/LorisYanis/nest-google-drive-solution.git

Install packages

npm install
# OR
yarn install
# OR
pnpm install

OR any other alternative package manager

Add googlekey.json to the root directory

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"
}

Setup .env file

# 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"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published