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¶
- Git
- Git Bash (if on Windows)
- JetBrains Toolbox
- IntelliJ IDEA
- Android Studio
- Docker Desktop
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¶
- Make sure you have access to the
mkk-systemsGitHub org. - Generate an SSH key (skip if you already have one): Press Enter to accept the default file location, and set a passphrase (optional but recommended).
- Start the SSH agent and add your key:
- Copy the public key and add it to GitHub (Settings → SSH and GPG keys → New SSH key):
- Test the connection:
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 Actionsread:packages— pullingmkk-commonfrom GitHub Packagesread:org— required for IntelliJ's GitHub integration to resolve org-owned reposgist— 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:
- Go to Settings → Version Control → GitHub
- Click the + to add an account → choose Log in with Token
- 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:
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, ormkk-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:
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.comsucceeds - PAT generated and saved for Maven/GitHub Packages auth
-
git --versionworks (Git Bash on Windows) - IntelliJ IDEA installed via Toolbox, correct JDK configured
- Android Studio installed via Toolbox (if doing Android work)
-
docker compose versionworks - 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)