# app-config.yaml
[...]
backend:
database:
- client: better-sqlite3
- connection: ':memory:'
+ # config options: https://node-postgres.com/api/client
+ client: pg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.fontSize": 14, | |
"editor.fontFamily": "monospace", | |
"workbench.iconTheme": "material-icon-theme", | |
"todo-tree.general.tags": [ | |
"BUG", | |
"HACK", | |
"FIXME", | |
"TODO", | |
"XXX", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Running this script will do following for all passed repos: | |
## - Create a branch `backstage-integration` | |
## - Add catalog-info.yaml | |
## - Creates a PullRequest | |
## | |
## Inspired at: https://gist.github.com/axdotl/8231abd46793ea23160662c3d81f4ba9 | |
## - User: @axdotl | |
## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
postgresql: | |
image: postgres:alpine | |
restart: always | |
container_name: backstage-studies | |
environment: | |
- POSTGRES_DB=${POSTGRES_DB} | |
- POSTGRES_HOST=${POSTGRES_HOST} | |
- POSTGRES_USER=${POSTGRES_USER} |
# app-config.yaml
[...]
+ auth:
+ environment: development
+ providers:
+ github:
+ development:
+ clientId: ${GITHUB_AUTH_CLIENT_ID}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// packages/app/src/App.tsx | |
// Há um import do pacote @backstage/core-components, que atualizaremos de maneira que fique: | |
import { AlertDisplay, OAuthRequestDialog, SignInProviderConfig, SignInPage } from '@backstage/core-components'; | |
[...] | |
// Realizaremos ainda o import de um novo pacote: | |
import { githubAuthApiRef } from '@backstage/core-plugin-api'; | |
[...] |
# app-config.yaml
[...]
+ integrations:
+ github:
+ - host: github.com
+ apps:
+ - $include: github-app-backstage-tutorial-medium-credentials.yaml
[...]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// packages/backend/src/plugins/catalog.ts | |
import { CatalogBuilder } from '@backstage/plugin-catalog-backend'; | |
import { ScaffolderEntitiesProcessor } from '@backstage/plugin-scaffolder-backend'; | |
import { Router } from 'express'; | |
import { PluginEnvironment } from '../types'; | |
import { GithubEntityProvider, GithubOrgEntityProvider } from '@backstage/plugin-catalog-backend-module-github'; | |
export default async function createPlugin( | |
env: PluginEnvironment, |