Some checks are pending
Create and publish a Docker image / docker (push) Waiting to run
|
||
---|---|---|
.. | ||
src | ||
.eslintrc.js | ||
Dockerfile | ||
package.json | ||
README.md |
example-backend
This package is an EXAMPLE of a Backstage backend.
The main purpose of this package is to provide a test bed for Backstage plugins that have a backend part. Feel free to experiment locally or within your fork by adding dependencies and routes to this backend, to try things out.
Our goal is to eventually amend the create-app flow of the CLI, such that a production ready version of a backend skeleton is made alongside the frontend app. Until then, feel free to experiment here!
Development
To run the example backend, first go to the project root and run
yarn install
You should only need to do this once.
After that, go to the packages/backend
directory and run
yarn start
If you want to override any configuration locally, for example adding any secrets,
you can do so in app-config.local.yaml
.
The backend starts up on port 7007 per default.
Populating The Catalog
If you want to use the catalog functionality, you need to add so called locations to the backend. These are places where the backend can find some entity descriptor data to consume and serve. For more information, see Software Catalog Overview - Adding Components to the Catalog.
To get started quickly, this template already includes some statically configured example locations
in app-config.yaml
under catalog.locations
. You can remove and replace these locations as you
like, and also override them for local development in app-config.local.yaml
.
Authentication
We chose Passport as authentication platform due to its comprehensive set of supported authentication strategies.
Read more about the auth-backend and how to add a new provider