This README provides step-by-step instructions for setting up the project environment. Follow these guidelines to configure the project correctly.
You need to set several placeholders in specific files to configure the application correctly.
Replace the following placeholders:
$PLACEHOLDER_GITHUB_USERNAME
: Your GitHub username.$PLACEHOLDER_DISPLAY_USERNAME
: Display name for GitHub.$PLACEHOLDER_GITHUB_EMAIL
: Your GitHub email address.
Set these placeholders:
$PLACEHOLDER_RBAC_ADMIN_USERNAME
: Set touser:default/nemerna
(example value).$PLACEHOLDER_GITHUB_CLIENT_ID
: Create a GitHub client ID and set it here.$PLACEHOLDER_GITHUB_CLIENT_SECRET
: Create a GitHub client secret and set it here.
Manually update the following source code files (already modified this is a FYI step):
packages/backend/src/plugins/auth.ts
packages/backend/src/plugins/catalog.ts
packages/backend/src/plugins/permission.ts
Set the following environment variables:
export POSTGRES_HOST=localhost
export POSTGRES_USER=postgres
export POSTGRES_PORT=5432
export POSTGRESQL_ADMIN_PASSWORD=mysecretpassword
export GITHUB_ENABLED=true
export PERMISSION_ENABLED=true
export POSTGRES_PASSWORD=mysecretpassword
Once all setup steps are completed:
-
Install dependencies:
yarn install
-
Startin the Project
yarn start