GithubHelp home page GithubHelp logo

kryndex / web-quickeditor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googleworkspace/drive-quickeditors

0.0 1.0 0.0 4.37 MB

A sample text editor for the web browsers illustrating how to open and save files with the Google Drive API

License: Apache License 2.0

JavaScript 68.29% HTML 31.07% CSS 0.64%

web-quickeditor's Introduction

web-quickeditor

A sample text editor for the web browsers illustrating how to open and save files with the Google Drive API

Overview

This is a simple text editor built with AngularJS, and the Google Drive API.

You can try out the app on its live instance.

Installation and Configuration

The project can run on any static web server.

Building from source

Fetch the source for the app:

git clone https://github.com/googledrive/web-quickeditor.git
cd web-quickeditor
npm install

Create a Google APIs project and Activate the Drive API

First, you need to activate the Drive API for your app. Activate it by configuring your API project in the Google Developers Console.

  • Use this wizard to create or select a project in the Google Developers Console and automatically enable the API.
  • Open the API Manager on the left sidebar.
  • Select Credentials -> New Credentials -> OAuth Client ID
  • If using a new proejct, select *Configure consent screen and fill out the form
    • Select an EMAIL ADDRESS and enter a PRODUCT NAME if not already set and click the Save button.
  • Select the application type Web application*
  • List your hostname in the Authorized JavaScript Origins field.
  • Click the Create button. Note the resulting client ID and secret which you'll need later on.

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

  • Select Overview section in API Manager
  • Search for 'Drive API' and click on 'Drive API' in the results
  • Click Enable API
  • Select the Drive UI Integration tab
  • Fill out the Application Name and upload at least one Application Icon.
  • Set the Open URL to http://YOURHOST/#/edit/{ids}/?user={userId}
  • Check the Create With option and set the New URL to http://YOURHOST/#/edit?user={userId}
  • Check the This application works properly with files in Team Drives option
  • Click Save Changes

Adjust the above URLs as needed for the correct hostname or path. Localhost is currently not allowed.

Setup your App information

Update the clientId and applicationId constants in index.js with your app's identity.

Deploy & run

You can run a local server with npm start:

web-quickeditor's People

Contributors

naokigoogle avatar sqrrrl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.