Skip to content

About

๐Ÿš€ A production-ready KCNA exam practice playground with 1,500+ questions, timed exam simulation, learning analytics, custom question-set support, and Dockerized deployment.

Topics

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

10 Commits

Folders and files

Repository files navigation

๐Ÿš€ KCNA Playground

The Ultimate Cloud Native Associate (KCNA) Exam Playground

Production-ready, beautiful glassmorphic UI, Dockerized, and extensible practice simulator.


Screenshots

Page 1 Page 2 Page 3
Page 4 Page 5 Page 6

๐ŸŒŸ Project Overview

kcna-playground is an enterprise-grade, open-source CNCF practice platform designed to prepare engineers for the Linux Foundation Kubernetes and Cloud Native Associate (KCNA) certification. Featuring a futuristic glassmorphic design, real-time file watching for custom question sets, full exam simulators, deep learning analytics, and Docker volume persistence, kcna-playground serves as the community-standard practice playground.

The hands-on Kubernetes playground for KCNA preparation.

  • โญ Practice
  • ๐Ÿงช Labs
  • โ˜ธ๏ธ Kubernetes
  • ๐ŸŒ Cloud Native
  • ๐ŸŽฏ KCNA Exam

โœจ At a Glance: Features

  • ๐ŸŽฏ Massive Question Bank: 1,500 built-in KCNA questions covering all 5 CNCF domains.
  • โšก Dynamic Ingestion: Drop custom JSON question sets into Docker volumesโ€”no restart needed!
  • ๐Ÿ•’ Pro Practice: Timed simulator, AI prediction, review modes, and detailed score tracking.
  • ๐Ÿ”ฎ Premium UX: Glassmorphic dashboards, 3D flapping modals, and enterprise logging.
  • ๐Ÿ‘‰ Read the Full Comprehensive Feature List Here!

๐Ÿ—๏ธ Architecture & Workspaces

kcna-playground/
โ”œโ”€โ”€ apps/
โ”‚   โ”œโ”€โ”€ backend/            # Express.js + TypeScript API & Real-Time Chokidar Volume Watcher
โ”‚   โ””โ”€โ”€ frontend/           # React 18 + Vite + TailwindCSS Custom Edition
โ”œโ”€โ”€ packages/
โ”‚   โ””โ”€โ”€ shared/             # Shared TypeScript types, Zod Schema, Domain definitions
โ”œโ”€โ”€ custom-data/            # Mounted Docker volume directory for custom JSON question sets
โ”œโ”€โ”€ data/
โ”‚   โ””โ”€โ”€ questionSets/       # Built-in 5 question sets (300 questions each, 1,500 total)
โ”œโ”€โ”€ logs/                   # Enterprise rotating server logs
โ”œโ”€โ”€ Dockerfile              # Multi-stage production container build
โ”œโ”€โ”€ docker-compose.yml      # Docker Compose configuration with persistent volume mounts
โ””โ”€โ”€ README.md               # Documentation

๐Ÿš€ Quick Start

Choose one of the following methods to run KCNA Playground.

1. Docker Run

Run the latest published Docker image directly:

docker run -itd \
  --name kcna-playground \
  -p 5000:5000 \
  -v "$(pwd)/custom-data:/app/custom-data" \
  -v "$(pwd)/logs:/app/logs" \
  ibraransaridocker/kcna-playground:latest

The application will be available at:

http://localhost:5000

2. Docker Compose

Create a docker-compose.yml file using the following command:

cat <<'EOF' > docker-compose.yml
services:
  kcna-playground:
    image: ibraransaridocker/kcna-playground:latest
    container_name: kcna-playground
    ports:
      - "5000:5000"
    volumes:
      - ./custom-data:/app/custom-data
      - ./logs:/app/logs
EOF

Start the application:

docker compose up -d

The application will be available at:

http://localhost:5000

3. Build the Docker Image Locally

To build the image locally instead of using the published image:

git clone https://github.com/meibraransari/kcna-playground.git
cd kcna-playground
docker compose build
docker compose up -d --build

4. Node.js & NPM

Prerequisites

  • Node.js >= 20.x
  • npm >= 10.x

Setup & Launch

# 1. Clone repository
git clone https://github.com/meibraransari/kcna-playground.git
cd kcna-playground

# 2. Install dependencies across all workspaces
npm install

# 3. Copy environment configuration
cp .env.example .env

# 4. Generate the 5 built-in question sets (1,500 questions)
npm run generate:questions

# 5. Start in local development mode (Vite Dev Server + Backend API)
npm run dev

# 6. OR Build and run production bundle natively on Port 5000
npm run build
npm run prod

๐Ÿณ Adding Custom Question Sets with Docker & Docker Compose

One of the most powerful features of kcna-playground is the ability to add your own custom question sets without editing code or rebuilding container images.

๐Ÿ“ Note: You can add any exam using the same JSON format. Students can also create their own subjects and topics, then explore and practice them in the lab.

How Docker & Docker Compose Volume Mounting Works

In docker-compose.yml, the host directory ./custom-data is mounted directly into /app/custom-data inside the container:

services:
  kcna-playground:
    build: .
    ports:
      - "5000:5000"
    volumes:
      - ./custom-data:/app/custom-data
      - ./logs:/app/logs
    environment:
      - PORT=5000
      - ENABLE_FILE_WATCHER=true
      - CUSTOM_DIRECTORY=/app/custom-data

Step-by-Step: Add Your Own Question Set

  1. Start the App via Docker Compose:

    docker compose up -d

    Your application will be live at http://localhost:5000.

  2. Create a Custom Question Set File: Create a JSON file on your host machine named myCustomSet.json following this schema:

    {
      "id": "questionSet-custom-devops-1",
      "title": "Custom Kubernetes Fundamentals & ArgoCD Set",
      "description": "25 High-yield practice questions for cloud native workflows",
      "version": "1.0.0",
      "questions": [
        {
          "id": "custom-q-101",
          "question": "Which Kubernetes component runs controller loops to maintain the desired cluster state?",
          "options": [
            "kube-scheduler",
            "kube-controller-manager",
            "etcd",
            "kubelet"
          ],
          "correctAnswer": 1,
          "explanation": "kube-controller-manager embeds core control loops that continuously reconcile actual state with desired state.",
          "difficulty": "medium",
          "domain": "Kubernetes Fundamentals",
          "topic": "Control Plane Components",
          "subtopic": "kube-controller-manager",
          "references": ["https://kubernetes.io/docs/concepts/overview/components/"],
          "tags": ["control-plane", "k8s-fundamentals"],
          "estimatedTime": 60,
          "version": "1.0"
        }
      ]
    }
  3. Drop the File into ./custom-data/: Copy or save your new JSON file directly into your local custom-data/ folder:

    cp myCustomSet.json ./custom-data/
  4. Watch Real-Time Automatic Loading:

    • Thanks to the container's real-time Chokidar File Watcher, the backend detects myCustomSet.json within milliseconds.
    • It validates your questions against the Zod schema and makes them immediately available in the UI.
    • Open the Exam Simulator or Challenge Studio in your browser, click Select Question Set, and pick myCustomSet.json!
    • No container restarts or image rebuilds required!

๐Ÿค Contributing

We welcome community contributions!

  1. Fork the repository (https://github.com/meibraransari/kcna-playground).
  2. Create a feature branch (git checkout -b feature/amazing-feature).
  3. Commit your changes (git commit -m 'feat: add amazing feature').
  4. Push to the branch and open a Pull Request.

๐Ÿ“„ License

Distributed under the Apache License, Version 2.0. See LICENSE for more information.

About

๐Ÿš€ A production-ready KCNA exam practice playground with 1,500+ questions, timed exam simulation, learning analytics, custom question-set support, and Dockerized deployment.

Topics

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages