Interaktiv introduktion til Git og GitHub — bygget med Astro.
npm install
npm run devÅbn http://localhost:4321 i din browser.
| Kommando | Beskrivelse |
|---|---|
npm run dev |
Start udviklingsserver |
npm run build |
Byg produktionsversion til dist/ |
npm run preview |
Forhåndsvis produktionsbuild |
- Commits — conventional commits, staging og push (
/commits) - Branches — feature branches og merge-workflow (
/branches) - Pull Requests — code review og merge til main (
/pull-requests) - Merge — strategier og løsning af konflikter (
/merge) - Issues — opgavesporing, sprint-board og PR-kobling (
/issues) - Releases — Git-tags, GitHub Releases og GitHub Actions (
/releases)
src/
content/ # Tekster, trin og quiz-data
components/react/ # Interaktive React-komponenter
layouts/ # Fælles sidelayout
pages/ # Astro-sider
styles/ # Global CSS
Produktion kører som statisk Astro-build bag nginx — samme mønster som øvrige Mercantec-apps.
Dokploy:
docker compose up -d --buildRouting: git.mercantec.tech → Traefik → container port 80.
Lokal test med Docker:
docker compose -f docker-compose.yml -f docker-compose.local.yml up --buildÅbn http://localhost:8080 (eller sæt WEB_HOST_PORT).
Miljøvariabler:
| Variabel | Standard | Beskrivelse |
|---|---|---|
FRONTEND_DOMAIN |
git.mercantec.tech |
Traefik Host-regel |
WEB_HOST_PORT |
8080 |
Host-port ved lokal override |