drive-editor
Very simple text editor storing all files on Google Drive in directory drive-editor
. Uses recommended security scope which permits the app to create/update/delete only the files created in it.
Setup
It is a bit more complicated since you need to setup a Google API project, enable drive for it and connect the app. Most of the problematic setup can be done with the guide linked in the instructions.
- Clone the project.
- Visit the directory in terminal and run
yarn
to install dependencies. - Visit Browser QuickStart guide and use
Enable the Drive API
andCreate API key
to easily obtain credentials without digging through the Google Console. - You are interested in
clientId
andapiKey
. Save them tosrc/config.json
:
{
"clientId": "XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.apps.googleusercontent.com",
"apiKey": "XXXXXXXXXXXXXXXXXXXXXXXXX-XXXXXXXXXXXXX"
}
- Update URI of the local app in console
- Visit Google APIs Console.
- Open the project.
- Go to
Credentials
. - Open
OAuth client
. - Update
URIs
fromhttp://localhost:8000
tohttp://localhost:3000
(used by CRA).
- Done!