How alebrex99/aw1-weeks-2025 works
Project type and purpose
• This is a teaching repository for “Applicazioni Web I – 2024/2025.” Over 12 weeks the student builds a simple full-stack Q&A web application.
• By week 11–12 the core architecture emerges:
• A React/Vite “react-qa” frontend
• A Node/ESM “qa-server” backend
• A SQLite database
File structure
• Top-level directories: week01…week12. Each week holds exercises; weeks 11–12 contain the full app.
• In week11/week12:
• qa-server/
– index.mjs (Express server entry)
– dao.mjs (data-access layer)
– QAModels.mjs (schema/business logic)
– questions.sqlite (persisted Q&A)
– test.http (manual API tests)
• react-qa/
– src/ (React app)
· API/API.mjs (client-side HTTP calls)
· components/ (UI components)
· models/QAModels.mjs (shared typings or helpers)
– index.html, vite.config.js (build setup)
Detail
• Layers in the backend: routing, business logic, data access.
• React’s component hierarchy in a simplified form (NavHeader, Questions, Answers, AnswerForm).
• Build tools (Vite, npm) as side notes.