How moabukar/tech-vault works
Project Type and Purpose
• Tech Vault is an open-source repository of curated engineering interview questions, challenges, and hands-on labs. It’s primarily a documentation and code‐sample library (Markdown + challenge code) with an accompanying CLI tool for question retrieval.
File Structure Analysis
• Top-level folders (“coding‐challenges”, “devops-challenges”, “dsa-challenges”) each contain subfolders per question, with code, configs, and README.
• “misc/py” and “misc/go” hold the random question generator scripts.
• CI/deployment manifests scattered under challenge codes (GitHub workflows, Ansible, Terraform, Serverless).
• No dedicated “frontend” or “backend” folder—this is a content repo plus tooling.
Key Components
a. GitHub Repository (Content Store)
• Stores Markdown docs & challenge code.
• Hosts multiple modules: Coding, DevOps, DSA, Misc.
• Exposes content via GitHub web UI or git clone.
b. CI/CD (GitHub Actions)
• Validation workflows under .github/workflows in challenges (e.g., Q30, Q42).
• Runs tests (e.g., Python tests in Q16), linting, Terraform validation.
c. Tech Vault CLI
• Two implementations (Python, Go) under misc/py & misc/go.
• Packages question files, applies filters (category, difficulty).
• Distributed as a pip or Go module.
d. Consumers
• Engineers browse content on GitHub Pages or local clone.
• Use CLI to fetch random or specific questions offline.
e. External Services
• Terraform Cloud or AWS for Terraform-based challenges.
• AWS Lambda for serverless examples.
• Docker/Kubernetes clusters for container/K8s challenges.
Relationships & Data Flow
• Developers → commit new questions/code → GitHub Repo
• Repo → triggers → CI/CD Pipelines → builds/tests → status badges
• Repo → serves → GitHub Pages (docs view)
• Users → git clone / GitHub UI → read questions
• Users → install & run CLI → fetch/quiz questions
• Challenge code → deploys → external infra (AWS, Docker, K8s)
Architectural Patterns
• Modular content directories (one module per topic)
• “Paper” architecture: flat file storage, no monolithic application
• CLI tool as thin client on top of repository
• GitOps/Infrastructure as Code for challenge environments
Essential Elements
• Clear component labels (Repo, CI/CD, CLI, User, Infra).
• File modules (rectangles)
• Processes (rounded rectangles)