Google API (Drive, Calendar) with window.fetch and VueJS (Sample)
- Get a Webapp client id from the Google API Console
- Make sure your local development url and production url are added to the authorized Javascript soruces; eg.
http://localhost:8080
(Vue Webpack default) - Make sure you have the Drive and Calendar libs enabled in the Google API Console
- Put it at line 34 in
src/App.vue
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report