How vikingpathak/kh-sql-projects works
Project Type and Purpose
• This is an open-source repository of beginner-to-advanced SQL projects.
• It doubles as a static documentation site (Markdown + Jekyll config) and an archive of downloadable .sql scripts for various domains (library, retail, hospital, etc.).
Key Components
a. Version Control Repository
• GitHub repo containing:
– _config.yml (Jekyll/site config)
– README.md (landing page)
– markdown_files/ (project descriptions as Markdown)
– *.sql files (actual SQL schemas/queries)
b. Static Site Generator
• Jekyll (or equivalent) reads _config.yml + Markdown files → produces HTML/CSS/JS
c. Hosting / Delivery
• GitHub Pages (or any static-host) serves the generated site
d. End Users
• Web browser clients that view docs & download .sql
e. Database Engine (Consumer)
• PostgreSQL or other RDBMS that ingests the downloaded SQL scripts
Relationships & Data Flow
1. GitHub repo → (source) → Jekyll build pipeline
2. Jekyll → (static site output) → Hosting/CDN
3. Client browser → (HTTP request) → Hosting/CDN → (HTML/JS/CSS) → browser renders UI
4. Client → (click “Download SQL”) → Hosting → (deliver .sql) → Client machine
5. Client machine → (runs .sql) → PostgreSQL server
Architectural Patterns & Principles
• Static Site Generation (SSG) for low-overhead documentation
• Clear separation of content (Markdown/SQL) vs. build tooling (Jekyll) vs. presentation (static assets)
• Single Responsibility: each SQL file is a standalone project; each Markdown file describes it
Technologies & Frameworks
• Jekyll (or similar SSG)
• Markdown → HTML converter
• GitHub (version control + Pages hosting)
• PostgreSQL (target DB engine)
5. “User Browser” connecting to Hosting (HTTP GET → serve docs).