This library is distributed on npm
. In order to add it as a dependency, run the following command:
$ npm install
Service accounts allow you to perform server-to-server, app-level authentication using a robot account. You will create a service account, download a keyfile, and use that to authenticate to Google APIs. To create a service account:
- Go to the Create Service Account Key page
- Select
New Service Account
in the drop down - Click the
Create
button
Save the service account credential file somewhere safe, and do not check this file into source control! To reference the service account credential file, you have a few options.
You need to edit the keyFilePath variable located in the services/googleDriveServices.js
file.
const keyFilePath = path.join(__dirname, "./your-secret-key.json");
const auth = new google.auth.GoogleAuth({
keyFile: keyFilePath,
scopes: ["https://www.googleapis.com/auth/drive"],
});
You should edit the folderId variable in the services/googleDriveServices.js
file according to your own folder id.
const folderId = "your-folder-id";
https://www.youtube.com/watch?v=bkaQTLCBBeo
- Fork the repository.
- Create a new feature branch:
git checkout -b feature/your-feature-name
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature/your-feature-name
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.