Files
backstage/plugins/gcalendar
Alex Rybchenko 23f8e4bb0e fixed lock file
Signed-off-by: Alex Rybchenko <arybchenko@box.com>
2022-02-28 12:41:50 +01:00
..
2022-02-28 11:06:22 +01:00
2022-02-28 11:06:22 +01:00
2022-02-28 11:05:30 +01:00
2022-02-28 12:41:50 +01:00
2022-02-28 12:11:47 +01:00

Google calendar plugin

Plugin displays events from google calendar

Getting started

The plugin exports a gcalendarApiRef. Add this to the App's apis.ts:

import {
  GCalendarApiClient,
  gcalendarApiRef,
} from '@backstage/plugin-gcalendar';

export const apis = [
  // ...
  createApiFactory({
    api: gcalendarApiRef,
    deps: { authApi: googleAuthApiRef, fetchApi: fetchApiRef },
    factory: deps => new GCalendarApiClient(deps),
  }),
];

You can also serve the plugin in isolation by running yarn start in the plugin directory. This method of serving the plugin provides quicker iteration speed and a faster startup and hot reloads. It is only meant for local development, and the setup for it can be found inside the /dev directory.