tralves / vue-gdrive

VueJS text editor with Google Drive integration
Apache License 2.0
38 stars 4 forks source link
google-drive vuejs

Disclaimer

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.

vue-gdrive

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.

Screenshots

DEMO

Try the app here!

Roadmap

Done:

TODO:

Building from source

Build Setup

# clone
git clone https://github.com/tralves/vue-gdrive.git
cd vue-gdrive

# install dependencies
npm install

Create a Google APIs project and Activate the Drive API

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 in etc/hosts like 127.0.0.1 myvuegdrive.dev. In this case, if you use npm run dev, the hostname of your application will be myvuegdrive.dev:8080.

To enable integration with the Drive UI, including the sharing dialog, perform the following steps.

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.

Setup your App information

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.

Run and deploy

# 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.