How cungbac/web-exercises works
Project type and purpose
• This repository is not a single application but a collection of six web‐based exercises, each demonstrating different web technologies and architectural styles:
1. Bootstrap‐Ecommerce‐Template (static HTML/CSS/JS)
2. DOM‐Exercises (pure client‐side JS)
3. Express‐Handlebars‐Exercise (Node.js + Express + Handlebars)
4. Sequelize‐Postgres‐Exercise (Node.js + Express + Sequelize + PostgreSQL)
5. CRUD‐Exercise (Node.js + Express + Sequelize + PostgreSQL)
6. Authenticate‐Exercise (Node.js + Express + Sequelize + PostgreSQL + email/password reset)
• The README lays out high‐level goals and tech stacks for each exercise.
File structure
• Top‐level folders each contain an independent project.
• Static/template exercises (Bootstrap & DOM) have only html/, css/, js/, image assets.
• Server‐side exercises share a familiar MVC‐style layout:
• config/config.json
• index.js (Express app entry point)
• controllers/*.js
• routes/*.js
• models/*.js + models/index.js
• seeders/*.js
• views/*.hbs (Handlebars templates)
• package.json + lockfiles declare dependencies.
• db/ or sequelize-cli migrations/seeds are invoked to initialize and seed PostgreSQL.
README for additional insights
• Each exercise has specific data flows (e.g., seeding blog, category, tag, comment; authentication flows including email).
• The README outlines RESTful CRUD operations, authentication & authorization, template rendering, and client‐only DOM logic.
Elements
• Green for client/static
• Blue for server logic
• Orange for data persistence
• Purple for external services