This project was developed so that the user can upload files behind NodeJS.
- FS support via fs
- GoogleDrive API googleapis
- ReadLine by - readline
For the application to work it is necessary to create a client secret and client id of the application itself. To do this, follow these steps:
- Visit: web
- Click: Enable the Drive API
- Download the credential file and insert the downloaded file at the root of the project with the name credentials.json
- Run the Project
# clone it
git clone https://github.com/caioorg/drive-api-node
cd drive-api-node
# Make it your own
rm -rf .git && git init
# Install dependencies
npm install
# Start project development
node .
In the first run, an access link will appear on your terminal so that you can generate the specific token of your application, follow the steps and at the end everything will work normally.
MIT