Install latest LTS version of Node.js https://nodejs.org/en/download/
Install yarn npm install --global yarn
Create your backstage app: make create-app
.
You will be asked to name your Backstage app. Enter the name backstage
.
We want to run our Backstage app in a container. Run make build-image
to build your backstage Docker image.
The following environment variables is needed in order to run Backstage.
export GITHUB_TOKEN="xxx"
export AUTH_GITHUB_CLIENT_ID="xxx"
export AUTH_GITHUB_CLIENT_SECRET="xxx"
GITHUB_TOKEN
can be obtained by creating a Personal Access Token. The token needs permission to repo
and workflow
.
AUTH_GITHUB_CLIENT_ID
and AUTH_GITHUB_CLIENT_SECRET
can be obtained by creating a OAuth Application.
Run make start-backstage
to run Backstage using docker-compose.
The backstage UI is now accessible using http://localhost:7000
To terminate the docker-compose process, run make stop-backstage
.