updated readme

Signed-off-by: Alex Rybchenko <arybchenko@box.com>
This commit is contained in:
Alex Rybchenko
2022-02-25 16:36:24 +01:00
parent 6b226ff8a9
commit ebc2bfb31c
4 changed files with 3695 additions and 3133 deletions
+4 -4
View File
@@ -29,9 +29,9 @@ backend:
# auth:
# keys:
# - secret: ${BACKEND_SECRET}
baseUrl: http://localhost:7000
baseUrl: http://localhost:7007
listen:
port: 7000
port: 7007
database:
client: sqlite3
connection: ':memory:'
@@ -308,8 +308,8 @@ auth:
providers:
google:
development:
clientId: 37202476686-4n78svmvctk411cirj7ds3d9ah682l2g.apps.googleusercontent.com
clientSecret: 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
clientId: ${AUTH_GOOGLE_CLIENT_ID}
clientSecret: ${AUTH_GOOGLE_CLIENT_SECRET}
github:
development:
clientId: ${AUTH_GITHUB_CLIENT_ID}
+19 -5
View File
@@ -1,12 +1,26 @@
# gcalendar
# Google calendar plugin
Welcome to the gcalendar plugin!
_This plugin was created through the Backstage CLI_
Plugin displays events from google calendar
## Getting started
Your plugin has been added to the example app in this repository, meaning you'll be able to access it by running `yarn start` in the root directory, and then navigating to [/gcalendar](http://localhost:3000/gcalendar).
The plugin exports a `gcalendarApiRef`. Add this to the App's `apis.ts`:
```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.
+1 -1
View File
@@ -34,7 +34,7 @@
"dompurify": "^2.3.6",
"lodash": "^4.17.21",
"luxon": "^2.3.0",
"material-ui-popup-state": "^2.0.0",
"material-ui-popup-state": "^1.9.3",
"react-query": "^3.34.16",
"react-use": "^17.2.4"
},
+3671 -3123
View File
File diff suppressed because it is too large Load Diff