Giter Site home page Giter Site logo

devopstoday11 / backstage-plugin-firebase-functions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from roadiehq/backstage-plugin-firebase-functions

0.0 1.0 0.0 608 KB

View Firebase Functions in Backstage

Home Page: https://roadie.io/backstage/plugins/firebase-functions

License: Apache License 2.0

JavaScript 2.71% TypeScript 97.29%

backstage-plugin-firebase-functions's Introduction

Firebase Functions Plugin for Backstage

details in the Firebase Functions plugin for Backstage

https://roadie.io/backstage/plugins/firebase-functions

Features

  • Display firebase functions details
  • link to overview or logs in the cloud google platform console

How to add firebase-functions project dependency to Backstage app

If you have your own backstage application without this plugin, here it's how to add it:

  1. In the backstage/packages/app project add the plugin as a package.json dependency:
yarn add @roadiehq/backstage-plugin-firebase-functions
  1. Add plugin to the list of plugins:
// packages/app/src/plugins.ts
export { plugin as FirebaseFunctionsPlugin } from '@roadiehq/backstage-plugin-firebase-functions';
  1. Add plugin to the EntitytPage.tsx source file:
// packages/app/src/components/catalog/EntityPage.tsx
<EntityPageLayout.Content
  path="/firebase-functions/*"
  title="Firebase Functions"
  element={<FirebaseFunctionsRouter entity={entity} />}
/>
  1. Import the Router as FirebaseFunctionsRouter in EntityPage.tsx:
// packages/app/src/components/catalog/EntityPage.tsx
import {
  Router as FirebaseFunctionsRouter
} from '@roadiehq/backstage-plugin-firebase-functions';

How to use Firebase-functions plugin in Backstage

To start using it for your component, you have to:

  1. add annotation to the yaml config file of a component:
cloud.google.com/function-ids: projects/<project-name>/locations/<region-name>/functions/<function-name>

Develop plugin locally

You can clone the plugin repo into the packages/ directory:

git clone https://github.com/RoadieHQ/backstage-plugin-firebase-functions.git firebse-functions

and run yarn in the root backstage directory - it will create a symbolic link so the dependency will be provided from the source code instead of node_modules package.

Links

backstage-plugin-firebase-functions's People

Contributors

dtuite avatar iain-b avatar lewtakm avatar mcalus3 avatar punkle avatar

Watchers

 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.