Skip to content

innovweb/tigercal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tigercal

Description

Calendar for all things Princeton

Installation

The app uses Node.js. In addition, it requires a few packages to be installed to run.

npm install googleapis --save
npm install google-auth-library --save
npm install chrono-node --save

API Setup

Because the app uses Gmail API and Google Calendar API, it is necessary to get authorization from the account to read/write emails and calendar events. Here are the steps to setup the API from API Quickstart:

  1. Use this wizard to create or select a project in the Google Developers Console and automatically turn on the API. Click Continue, then Go to credentials.
  2. On the Add credentials to your project page, click the Cancel button.
  3. At the top of the page, select the OAuth consent screen tab. Select an Email address, enter a Product name if not already set, and click the Save button.
  4. Select the Credentials tab, click the Create credentials button and select OAuth client ID.
  5. Select the application type Other, enter the name "Gmail API Quickstart", and click the Create button.
  6. Click OK to dismiss the resulting dialog.
  7. Click the download button to the right of the client ID.
  8. Move this file to your working directory and rename it client_secret.json.

Running

node app.js

When the app is run for the first time, you need to authorize access for reading and writing emails and calendar events. Here are the steps to authorize access from API Quickstart.

  1. Browse to the provided URL in your web browser.
  2. If you are not already logged into your Google account, you will be prompted to log in. If you are logged into multiple Google accounts, you will be asked to select one account to use for the authorization.
  3. Click the Accept button.
  4. Copy the code you're given, paste it into the command-line prompt, and press Enter.

The credentials are saved in a folder called credentials in the home directory with the name gmail-calendar-nodejs-tigercal.json.

About

Calendar for all things Princeton

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •