Welcome to the Backstage project! This repository contains the configuration and code for setting up and running a Backstage instance tailored to our organization's needs.
- Introduction
- Features
- Prerequisites
- Installation
- Running the Application
- Configuration
- Usage
- Contributing
- License
Backstage is an open platform for building developer portals. It unifies all your infrastructure tooling, services, and documentation with a single, consistent UI.
- Software Catalog: Centralized place to manage all your software and services.
- TechDocs: Integrated documentation site generator.
- Kubernetes Monitoring: View the status of your Kubernetes clusters.
- API Explorer: Explore and manage your APIs.
- CI/CD Integration: Monitor your CI/CD pipelines and workflows.
Before you begin, ensure you have met the following requirements:
- Node.js (version 14 or later)
- Yarn (version 1.22.0 or later)
- Docker (for running the database and other services, optional but recommended)
To install the Backstage project, follow these steps:
-
Clone the repository:
git clone https://github.com/bistecglobal/backstage_bistec.git cd backstage_bistec
-
Install dependencies:
yarn install
To start the Backstage application, use the following commands:
-
Start the Whole Application:
cd backstage_bistec yarn dev
-
Start the backend Separately:
cd packages/backend yarn start
-
Start the frontend Separately:
In a new terminal window, navigate to the root directory and run:
yarn dev
-
Access the application:
Open your browser and navigate to
http://localhost:3000
.
Configuration for Backstage is managed through the app-config.yaml
file. Here are some key sections you might need to update:
- Database: Configure the connection to your PostgreSQL database.
- Authentication: Set up authentication providers (e.g., GitHub, Google).
- Plugins: Enable and configure Backstage plugins as needed.
To add a new component to the Backstage catalog:
-
Create a
catalog-info.yaml
file in your component's repository:apiVersion: backstage.io/v1alpha1 kind: Component metadata: name: my-service description: My service description owner: team-abc spec: type: service lifecycle: production
-
Register the component:
- Navigate to the Backstage UI.
- Go to the Catalog section and click Register Existing Component.
- Enter the URL to your
catalog-info.yaml
file.
To add documentation for your components using TechDocs:
-
Create documentation in Markdown format within your repository.
-
Reference the documentation in your
catalog-info.yaml
file:metadata: annotations: backstage.io/techdocs-ref: "dir:./docs"
-
Build and publish the documentation:
yarn techdocs-cli generate --source-dir ./docs --output-dir ./site
We welcome contributions! To contribute:
-
Fork the repository.
-
Create a feature branch:
git checkout -b feature-branch
-
Commit your changes:
git commit -m 'Add some feature'
-
Push to the branch:
git push origin feature-branch
-
Create a pull request.
Please read our CONTRIBUTING.md for more details on our code of conduct, and the process for submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.