tsuyoshi007 / googleDrive-creatingFolder-listFiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slack Files List

Getting Started

Package needed :

  • googleapis

Installing

npm install

Set Up Instruction

1. Go to Google Developer Console
2. Select or Create a New Project
3. Enable Drive API for Your Project
    * In the sidebar on the left, expand APIs & Services > Library
    * Search for "drive"
    * Click on "Google Drive API"
    * Enable the API
4. Create Credentials for Your Project
    * In the sidebar on the left, expand APIs & Services > Library
    * Click on "Create credentials"
    * Choose "OAuth client ID" > Web Application
    * Fill in your project name in "Name" section
    * In "Authorized JavaScript origins" section, enter "http://localhost:8000"
    * In "Authorized redirect URIs" section, enter "http://localhost:8000" or forward it to any router you want. In my example, I do not use any router.
    * After fill in everything, click "Create"
5. Download JSON and copy it to root project folder

image

Running

npm start

Built With

Authors

  • Hun Vikran

About


Languages

Language:JavaScript 100.0%