A walkthrough and more details are available on Google Drive SDK docs.
-
Clone DrEdit's git repo and init submodules:
git clone [email protected]:googledrive/dredit.git cd dredit git submodule init git submodule update --recursive
-
Register DrEdit as described in Enable the Drive SDK using the following values
- Set the default MIME types
text/plain
andtext/html
, and the default extensionstxt
andhtml
. - Ensure that the set of redirect URIs includes the URI of the Google App Engine application created in step 1 (i.e.
https://your_app_id.appspot.com
). The same URL must be provided for theOpen URL
andCreate URL
fields. - Add the
Google API Scopes
ofhttps://www.googleapis.com/auth/userinfo.email
andhttps://www.googleapis.com/auth/userinfo.profile
. - For icons, use the example icons provided in the
chromewebstore
directory.
- Set the default MIME types
-
Copy the contents of the
python/
directory to the root of the Google App Engine project -
Create a session secret, which should be at least 64 bytes of random characters, for example with
python -c "import os; print os.urandom(64)" > session.secret
-
Modify
client_secrets.json
to replace theclient_id
,client_secret
, andredirect_uris
with the values from the Google APIs Console under the API Access tab for the project. Note: Make sure you use a valid Client ID for web applications. Do not use the Client ID for Drive SDK, which is reserved for future feature development. -
Edit
app.yaml
and replace the value for theapplication
setting with the identifier of the new Google App Engine application created in step 1. -
Deploy the App to App Engine as described in the Google App Engine documentation.
-
Test the application.
-
Continue reading to find out how DrEdit is constructed, and how to modify it to work for your own application's needs.