|
| 1 | +# Backstage |
| 2 | + |
| 3 | +This is the SourceFuse ARC Backstage implementation. It comes packaged with |
| 4 | +- GitHub integration for authentication and authorization |
| 5 | +- ARC Templates for |
| 6 | + - Microservices |
| 7 | + - Lambdas |
| 8 | + - IaC |
| 9 | + - UI |
| 10 | + - Reference architectures of example apps, i.e. telemedecine applications |
| 11 | + |
| 12 | + |
| 13 | +## Getting Started |
| 14 | +We rely on `nvm` for Node Version Management and `yarn` for package management. |
| 15 | +```shell |
| 16 | +nvm install |
| 17 | +yarn install |
| 18 | +npm run build:all |
| 19 | +``` |
| 20 | + |
| 21 | +## Local Environment Configuration |
| 22 | +Create a file named `.env.local`. Populate the values below with the ones appropriate for your GitHub organization. |
| 23 | +```text |
| 24 | +BASE_URL='http://localhost:7007' |
| 25 | +FRONTEND_BASE_URL='http://localhost:3000' |
| 26 | +POSTGRES_USER=postgres |
| 27 | +POSTGRES_PASSWORD=changeme |
| 28 | +AUTH_GITHUB_CLIENT_ID=GitHub app client_id |
| 29 | +AUTH_GITHUB_CLIENT_SECRET=GitHub app client secret |
| 30 | +PGADMIN_DEFAULT_EMAIL=pgadmin4@pgadmin.org |
| 31 | +PGADMIN_DEFAULT_PASSWORD=admin |
| 32 | +PGADMIN_PORT=5050 |
| 33 | +PGADMIN_LISTEN_ADDRESS=0.0.0.0 |
| 34 | +INTEGRATION_GITHUB_APP_ID=GitHub app App ID |
| 35 | +INTEGRATION_GITHUB_WEBHOOK_URL=https://smee.io/pvDM8sHcDxmhMLvfxax |
| 36 | +ENABLE_GITHUB_SYNC=Set true or false if you want to sync with github |
| 37 | +INTEGRATION_GITHUB_CLIENT_ID=GitHub app client_id |
| 38 | +INTEGRATION_GITHUB_CLIENT_SECRET=GitHub app client secret |
| 39 | +INTEGRATION_GITHUB_WEBHOOK_SECRET=GitHub app webhook secret |
| 40 | +AWS_ACCOUNT_ID=AWS Account ID to Push the Image |
| 41 | +IMAGE_TAG=Tag for the Docker Image |
| 42 | +REPO_CREATOR_TEAM=Github team having scaffolding access |
| 43 | +GITHUB_ORGANIZATION=Github organization |
| 44 | +``` |
| 45 | + |
| 46 | +Load the variables into a shell session for ease. |
| 47 | + |
| 48 | +```shell |
| 49 | +export $(cat .env.local | xargs) |
| 50 | +``` |
| 51 | +Copy the cert into a file named `github_private_key.pem` in the root of the project. Load the certificate into your shell session. |
| 52 | + |
| 53 | +```shell |
| 54 | +export INTEGRATION_GITHUB_PRIVATE_KEY=`cat ./github_private_key.pem` |
| 55 | +``` |
| 56 | +Run the entire stack in Docker. |
| 57 | +```shell |
| 58 | +docker-compose up --build |
| 59 | +``` |
| 60 | + |
| 61 | +You can also specify the environment file, just be sure to handle the formatting of the RSA private key correctly. |
| 62 | +```shell |
| 63 | +docker-compose --env-file=.env.local up --build |
| 64 | +``` |
0 commit comments