This project is deprecated beyond repair. Google no longer supports these Google Drive APIs.
You may read the code, maybe it will help you somehow... that's all I can do for you.
VueJS text editor with Google Drive integration
If you want to build a VueJS app with Google Drive integration? Start here!
This project is just a text editor written in VueJS uses google drive API for storage, sharing (soon) and realtime colaboration (not yet). Use it as a boilerplate or reference for your awesome project!
This project was the boilerplate for the Collaborative Markdown Editor. You can try it HERE.
Try the app here!
# clone
git clone https://github.com/tralves/vue-gdrive.git
cd vue-gdrive
# install dependencies
npm install
First, you need to activate the Drive API for your app. You can do it by configuring your API project in the Google Developers Console.
The hostname cannot be
localhost
. To test from your machine, create an alias inetc/hosts
like127.0.0.1 myvuegdrive.dev
. In this case, if you usenpm run dev
, the hostname of your application will bemyvuegdrive.dev:8080
.
To enable integration with the Drive UI, including the sharing dialog, perform the following steps.
http://YOURHOST?file={ids}&user={userId}&action={action}
.http://YOURHOST?user={userId}&action={action}
.text/markdown
and text/plain
.md
.To enable integration with the Google+ API to retrieve the user name, email and avatar, perform the following steps.
Adjust the above URLs as needed for the correct hostname or path. Localhost is currently not allowed.
Note the resulting application ID on top of the page.
Copy config/.env.example.js
to config/.env.js
.
cp config/.env.example.js config/.env.js
Update the CLIENT_ID
and APPLICATION_ID
constants in config/.env.js
file. Configurations cascade from prod
to dev
to test
.
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
This application was build from the VueJS webpack template. For detailed explanation on how things work, checkout the guide and docs for vue-loader.