Code Monkey home page Code Monkey logo

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

If you don't already have Gulp and Bower you can install with:

npm install -g gulp bower

Fetch the source for the app:

git clone https://github.com/googledrive/web-quickeditor.git
cd web-quickeditor
npm install & bower 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.

  • Use this wizard to create or select a project in the Google Developers Console and automatically enable the API.
  • In the sidebar on the left, select Consent screen. Select an EMAIL ADDRESS and enter a PRODUCT NAME if not already set and click the Save button.
  • In the sidebar on the left, select Credentials and click Create new Client ID.
  • Select the application type Web application* and click the Create Client ID button.
  • List your hostname in the Authorized JavaScript Origins field.

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

  • Select the tab APIs & Auth > APIs and click the OFF button next to Drive SDK to enable it.
  • Click the gear icon next to Drive SDK
  • Click the link to return to the original console.
  • 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}

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 gulp:

gulp serve

web-quickeditor's People

Contributors

sqrrrl avatar naokigoogle avatar

Watchers

James Cloos avatar  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.