Skip to content

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 ​

  1. Request to be added to the Luna OKTA group.
  2. Once added, use the OKTA dashboard to access GitLab — this creates your GitLab user.
  3. 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:

bash
# 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.com

A 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.

  1. Go to your GitLab Personal Access Tokens.
  2. Create a token with the read_api scope and copy the value.
  3. Add it to your ~/.zshrc:
    bash
    echo 'export LUNA_PACKAGE_REGISTRY_PAT="your-gitlab-personal-access-token"' >> ~/.zshrc
    source ~/.zshrc

3. Clone and install ​

bash
git clone git@gitlab.com:and-digital-group/business-platform/luna.git
cd luna
yarn install

The 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:

bash
cd services/auth   # or clients/luna-front-end, packages/..., etc.
yarn install

TIP

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:

bash
cd cli && yarn run setup

This 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.

Made with ❤️ by the Luna team