Getting Set up
To get started follow these steps to ensure you have the access you require.
Gitlab
Luna has migrated to Gitlab as one mono repo.
Access to the new Luna repo
- Request to be added to the Luna OKTA group.
- Once added, use the OKTA dashboard to access GitLab — this creates your GitLab user.
- An admin will then grant you the relevant access to the Business Platform Group.
Getting started
These steps take you from a fresh machine to pushing a change.
Prerequisites
- Node:
>=24 - Yarn:
1.22.22(Yarn Classic) - Git
1. Set up SSH keys
Cloning requires SSH keys linked to your GitLab account. At a glance:
# 1. Generate a new key (skip if you already have one you want to use)
ssh-keygen -t ed25519 -C "you@and.digital"
# 2. Add your key to the ssh-agent
ssh-add ~/.ssh/id_ed25519
# 3. Copy the public key, then paste it into GitLab
# (Preferences → SSH Keys → Add new key)
pbcopy < ~/.ssh/id_ed25519.pub
# 4. Verify the connection — this also adds gitlab.com to ~/.ssh/known_hosts
# on first connect (answer "yes" when prompted)
ssh -T git@gitlab.comA successful step 4 prints Welcome to GitLab, @your-username!. For the full walkthrough see the GitLab docs on generating an SSH key pair and adding it to your account.
2. Set up your package registry token
Luna's private packages install from the GitLab registry, which needs a Personal Access Token exported in your shell.
- Go to your GitLab Personal Access Tokens.
- Create a token with the
read_apiscope and copy the value. - Add it to your
~/.zshrc:bashecho 'export LUNA_PACKAGE_REGISTRY_PAT="your-gitlab-personal-access-token"' >> ~/.zshrc source ~/.zshrc
3. Clone and install
git clone git@gitlab.com:and-digital-group/business-platform/luna.git
cd luna
yarn installThe root yarn install only installs the Lefthook git hooks — it does not install every module. Because each module is self-contained, install dependencies in the specific module you're working on:
cd services/auth # or clients/luna-front-end, packages/..., etc.
yarn installTIP
Installing clients/luna-front-end can stall on @mui/icons-material. If it does, run yarn add @mui/icons-material --network-timeout 500000 first, then yarn install.
4. Install the luna CLI
The CLI runs the frontend locally, deploy scripts, and other helpers. Set it up once, from the repo root:
cd cli && yarn run setupThis builds and links the luna command globally, so you can run luna from anywhere. Verify with luna --version. See the luna CLI README for the full command set and troubleshooting.
