How imashish-in/generative-ai-for-beginners works
Project type and purpose
• This is a static course website / learning content repository (“Generative AI for Beginners”) that hosts 18 lessons, code samples (Python, TypeScript, .NET), Jupyter notebooks, translations, and configuration for local development.
• It uses GitHub for version control, GitHub Actions for CI (linting markdown, issue templates, dependency locks), a devcontainer for local environment consistency, and Docsify + GitHub Pages for serving a static site.
File structure
• Top-level directories:
• .devcontainer/, .vscode/: local development setup (Docker, VSCode settings)
• 00-course-setup through 18-fine-tuning: 18 lesson folders, each containing a README.md, code samples, images, translation subfolders
• docs/: docsify site config (_sidebar.md, _navbar.md, index.html)
• translations/: root-level translation stub folders
• CI configs under .github/workflows/
• Static site shell under project root (index.html, images/, package.json, docsifytopdf.js)
• Configuration files: .env.copy, package.json (Docsify + hosting scripts), requirements.txt (Python support), GitHub Actions workflows.
README for insights
• Confirms it’s a self-contained course repository.
• Mentions Azure OpenAI / OpenAI API keys (via .env), Python and TypeScript code.
• Points to Course Setup lesson for environment prep.
Diagramming the architecture
• Developer / Author (local machine + VSCode + devcontainer)
• GitHub Repo (content: markdown, notebooks, code samples, docsify config)
• GitHub Actions pipelines
• Markdown validation & linting
• Dependency locking
• Issue / PR templates management
• Docsify Build Engine (node.js, package.json)
• Static Site Hosting (GitHub Pages)
• Learner (end-user in browser)
• External Services (Azure OpenAI / OpenAI API) for code sample execution
1. Developer edits content in VSCode (inside devcontainer) → pushes to GitHub Repo
2. GitHub Actions triggers on push → runs CI jobs (linting, tests, dependency locks)
4. GitHub Pages serves static HTML/CSS/JS → Learner’s browser
5. Learner’s code samples (if run locally or via live notebooks) may call OpenAI API (external service)
c. Architectural patterns / principles
• GitOps: content-driven pipeline, all changes via Git PRs
• CI/CD: automated validation → continuous deployment of static site
• Dev Containers: reproducible local dev environment
• Modular content: each lesson is a self-contained module with translations
d. Technologies / frameworks
• GitHub (Version Control, Actions, Pages)
• Docker DevContainer (VSCode Remote Containers)
• Docsify (static site generation on the client side)
• Markdown, Jupyter Notebooks
• Python (code samples, requirements.txt)
• TypeScript (code samples, package.json, tsconfig.json)
• Azure OpenAI / OpenAI API (external dependencies)