How wayne1894/frontend2024 works
Project type and purpose
• This repository (“frontend2024”) is a collection of front-end exercises and mini-projects for a web-development course.
• It contains:
– Pure static HTML/CSS/JS examples (e.g., “0527”, “0603”, etc.)
– Assignments demonstrating AJAX with a local Node mock server (“0826_ajax”, “0902”, “0903”)
– Vue/Vite projects (e.g., “0910_es6_vue”, “0923_vue”, “_0924/vue-project”, “sicbo”, “course_demo2024”)
– Some Firebase-based demos (e.g., “bluemonkey”, “khs_layout”, “vite5_scss_ejs_2024_temp”)
File structure
• Top-level folders are by date or by project name—each is effectively a self-contained front-end demo.
• Many projects use NPM + package.json + Vite for development and build.
• Some have a “mock” subfolder that spins up a Node.js server to simulate API endpoints.
• Vue/Vite projects share a common structure:
– public/ (static assets, e.g., images)
– src/ (App.vue, components/, router/, stores/, assets/, main.js)
– config files (vite.config.js, tailwind.config.js)
README for additional insights
• The README is primarily course material links; it doesn’t prescribe a single architecture.
• The assignments cover: basic HTML/CSS, responsive layouts, JavaScript fundamentals, AJAX, ES6, Vue with Pinia/router, and integrating with an API.
Elements
• Developer → GitHub (push)
• Developer → Dev Toolchain (npm install, vite dev/build)
• Dev Toolchain → Browser (local serve)
• Browser ↔ Mock Server (for AJAX demos)
• Build output → Hosting (deploy)
• Browser → Hosting (fetch production assets)
• Blue for “Development” components (IDE, NPM, Vite)
• Green for “Runtime” components (Browser, Mock Server)
• Orange for “Infrastructure” (GitHub, Firebase Hosting)
Detail
• For Vue projects, annotate: “src/components”, “router/index.js”, “stores/counter.js”, “vite.config.js”.
• For AJAX demos, annotate the location of mock code (“mock/index.js”, package.json).
• Flow of asset generation (src → Vite → dist → Hosting).