Skip to content

General Setup

Welcome to the MKK Systems dev environment. This guide covers the tools and accounts you need before touching any of the mkk-* repositories (backend, common, android-pos, android-sdk, android-mobile).

Never commit directly to main

We don't have branch protection rules set up (requires a paid plan), so nothing stops you from pushing straight to main.

Always work on a feature branch and go through a PR—even for "tiny" changes.

Required software list

These will be installed in later steps. If you already have them installed, make sure they are up to date.

1. GitHub Account & SSH Key

  1. Make sure you have access to the mkk-systems GitHub org.
  2. Generate an SSH key (skip if you already have one):
        ssh-keygen -t ed25519 -C "your_email@example.com"
    
    Press Enter to accept the default file location, and set a passphrase (optional but recommended).
  3. Start the SSH agent and add your key:
        eval "$(ssh-agent -s)"
        ssh-add ~/.ssh/id_ed25519
    
  4. Copy the public key and add it to GitHub (Settings → SSH and GPG keys → New SSH key):
        cat ~/.ssh/id_ed25519.pub
    
  5. Test the connection:
        ssh -T git@github.com
    

2. GitHub Personal Access Token (PAT)

You'll need one Personal Access Token (classic) that covers both Maven package auth and IDE login — save it once and reuse it across every JetBrains IDE.

Generate the token

Go to GitHub → Settings → Developer settings → Personal access tokens → Tokens (classic) → Generate new token, and select these scopes:

  • repo — required since MKK repos are private (covers cloning, PR/issue access, and package auth against a private repo)
  • workflow — required if IntelliJ needs to view/trigger GitHub Actions
  • read:packages — pulling mkk-common from GitHub Packages
  • read:org — required for IntelliJ's GitHub integration to resolve org-owned repos
  • gist — required by IntelliJ's GitHub integration (used for sharing code snippets)

Copy the token immediately and save it in a password manager — GitHub only shows it once.

Use the token in your IDE (IntelliJ / Android Studio)

Do not use the browser-based "Log in via GitHub" option. Instead:

  1. Go to Settings → Version Control → GitHub
  2. Click the + to add an account → choose Log in with Token
  3. Paste your PAT

This same token works in both IntelliJ IDEA and Android Studio — no need to generate separate tokens per IDE.

SSH still handles git clone/push/pull. This PAT is only for IDE login (GitHub integration) and Maven's auth against GitHub Packages.

3. Git

  • macOS: brew install git
  • Linux: sudo apt install git (or your distro's equivalent)
  • Windows: Install Git for Windows — this bundles Git Bash, which you'll use as your terminal for git commands.

Set your identity after installing:

git config --global user.name "Your Name"
git config --global user.email "your_email@example.com"

4. JetBrains Toolbox

Install JetBrains Toolbox first — it manages installs/updates for all JetBrains IDEs in one place, rather than downloading each IDE separately.

From Toolbox, install:

  • IntelliJ IDEA (Ultimate if you have an active license/edu account — needed for full Spring Boot support; Community works for basic Java/Maven but lacks Spring-specific tooling)
  • Android Studio (also managed through Toolbox) — required if you're working in mkk-android-pos, mkk-android-sdk, or mkk-android-mobile

5. Docker Desktop

Required for running the backend's containerized dependencies (MongoDB, RabbitMQ, etc.) and for building/running the Dockerized backend itself.

  • Download from docker.com/products/docker-desktop
  • On Windows, this requires WSL2 — the installer will prompt you if it's not enabled.
  • Verify install:
        docker --version
        docker compose version
    

6. JDK

Confirm you have the correct JDK version installed and set in IntelliJ's Project SDK settings (check the target Java version in mkk-backend's Gradle config unsure). Common JDKs are Java 8, Java 21

MKK-Systems uses azul JDKs for development so if you do not have them installed in stall them from this list:

7. Square Setup

Complete the setup steps in Square Setup

8. Quick Verification Checklist

  • ssh -T git@github.com succeeds
  • PAT generated and saved for Maven/GitHub Packages auth
  • git --version works (Git Bash on Windows)
  • IntelliJ IDEA installed via Toolbox, correct JDK configured
  • Android Studio installed via Toolbox (if doing Android work)
  • docker compose version works
  • logged into square dev console and can access the square sandbox dashboard

Remember

When you clone a repo remember to look at the repo's readme.md for information on how to use it (if documentation exists)