Giter VIP home page Giter VIP logo

bookstageinfo's Introduction

Bookstageinfo

This is repo used to showcase Backstage with the Bookinfo application (hence book-stage-info).

Bookinfo

The source for the bookinfo service is from the Istio repo.

Check out my YouTube channel for Backstage videos:

Backstage setup

The Backstage app is in the backstage folder. Before you run the app, make sure you set up the database and configure environment variables.

1. Database setup

Backstage is configured to use the local postgres database. You can run the database using docker:

docker run --name some-postgres -p 5432:5432 -e POSTGRES_PASSWORD=mysecretpassword -d postgres

If you want to use a different database, you can change the database configuration in the backstage/app-config.yaml file.

2. Environment variables

Before you run the app, you need to set the environment variables for Github integration (GITHUB_TOKEN) and auth (GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET).

export GITHUB_TOKEN=your-github-token
export GITHUB_CLIENT_ID=your-github-client-id
export GITHUB_CLIENT_SECRET=your-github

Check the app-config.yaml for links to the documentation on how to get these values.

3. Run the app

To run the app, you can use the following commands:

cd backstage
yarn dev

Before you run the app for the first time, make sure you installed the dependencies (yarn install).

Setting up Kubernetes

The configuration (app-config.yaml) assumes you have a local Kubernetes cluster running (i.e. kubectl proxy) that Backstage app can access. Additionally, it's assumed you have deployed the Bookinfo application to the cluster. Alternatively, you can individually deploy services using the manfiests in the /deploy folder.

Once you have the Kubernetes cluster setup, Bookinfo deployed and the proxy running, you'll see a "Kubernetes" tab on the components page:

Kubernetes tab for the productpage

bookstageinfo's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

bookstageinfo's Issues

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.