GithubHelp home page GithubHelp logo

kadams54 / upcomingjs Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 24 KB

Displays upcoming events from public Google calendars in a customizable fashion.

License: Apache License 2.0

JavaScript 96.43% CSS 3.57%
javascript google-calendar google-api-client

upcomingjs's Introduction

Upcoming.js Build Status

Displays upcoming events from public Google calendars in a customizable fashion.

Demo

Check out the live demo or run the demo locally:

  1. Make sure you have NPM and Grunt installed.
  2. Set up Upcoming.js and run it:
git clone https://github.com/kadams54/upcomingjs.git
cd upcomingjs/
npm install
grunt

Usage

  1. Include the code:

    <script src="upcoming.min.js"></script>
  2. Call upcomingjs:

    window.upcomingjs(
    '#my-upcoming',  // Element selector
    'MY GOOGLE CALENDAR API KEY',  // Google Calendar API key
    'MY CALENDAR ID'  // Google Calendar ID
    );

Upcoming.js requires three pieces of information, passed in as the three parameters above:

  1. The selector for the DOM element into which Upcoming.js should render the event list.
  2. Your Google Calendar API key.
  3. The public calendar's ID - note that the calendar must be made public.

The first bit of information, the DOM selector, is easy. Unfortunately the last two require a bit of work.

Obtaining Your Google Calendar API Key

Hat tip to Full Calendar for these instructions:

  1. Go to the Google Developer Console and create a new project (it might take a second).
  2. Once in the project, go to APIs & auth > APIs on the sidebar.
  3. Find "Calendar API" in the list and turn it ON.
  4. On the sidebar, click APIs & auth > Credentials.
  5. In the "Public API access" section, clikc "Create new Key".
  6. Choose "Browser key".
  7. If you know what domains will host your calendar, enter them into the box. Otherwise, leave it blank. You can always change it later.
  8. Your new API key will appear. It might take a second or two before it starts working.

Making Your Google Calendar Public

TODO

Finding Your Google Calendar ID

TODO

Team

Upcoming.js was created by Kyle Adams, with help from these contributors.

Credits

Sites Using This Widget

  • None listed yet. Why not be the first?

upcomingjs's People

Contributors

kadams54 avatar

Stargazers

 avatar

Watchers

 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.